Skip to content

Commit a49c751

Browse files
committed
Add test for -sycl-enable-local-accessor
1 parent 30283c0 commit a49c751

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/// Check the correct handling of sycl-enable-local-accessor option.
2+
3+
// REQUIRES: clang-driver
4+
5+
// RUN: %clang -fsycl -### %s 2>&1 \
6+
// RUN: | FileCheck -check-prefix=CHECK-NO-OPT %s
7+
// CHECK-NO-OPT-NOT: "-sycl-enable-local-accessor"
8+
9+
// RUN: %clang -fsycl -fsycl-targets=nvptx64-nvidia-cuda -### %s 2>&1 \
10+
// RUN: | FileCheck %s
11+
// CHECK: "-sycl-enable-local-accessor"

0 commit comments

Comments
 (0)