Skip to content

Commit 28e635b

Browse files
committed
add driver test on windows
1 parent 572dafd commit 28e635b

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
///
2+
/// Perform several driver tests for SYCL device side sanitizers on Windows
3+
///
4+
5+
// REQUIRES: system-windows
6+
7+
/// ###########################################################################
8+
9+
// RUN: %clangxx -fsycl -fsanitize=address -c %s -### 2>&1 \
10+
// RUN: | FileCheck --check-prefix=SYCL-ASAN %s
11+
// RUN: %clangxx -fsycl -Xarch_device -fsanitize=address -c %s -### 2>&1 \
12+
// RUN: | FileCheck --check-prefix=SYCL-ASAN %s
13+
14+
// SYCL-ASAN: ignoring '-fsanitize=address' option as it is not currently supported for target 'spir64-unknown-unknown'
15+
16+
/// ###########################################################################
17+
18+
// RUN: %clangxx -fsycl -fsanitize=memory -c %s -### 2>&1 \
19+
// RUN: | FileCheck --check-prefix=SYCL-MSAN %s
20+
// RUN: %clangxx -fsycl -Xarch_device -fsanitize=memory -c %s -### 2>&1 \
21+
// RUN: | FileCheck --check-prefix=SYCL-MSAN %s
22+
23+
// SYCL-MSAN: ignoring '-fsanitize=memory' option as it is not currently supported for target 'spir64-unknown-unknown'

clang/test/Driver/sycl-device-sanitizer.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
///
2+
/// Perform several driver tests for SYCL device side sanitizers on Linux
3+
///
4+
15
// UNSUPPORTED: system-windows
26

37
/// ###########################################################################

0 commit comments

Comments
 (0)