Skip to content

Commit

Permalink
Add test for -sycl-enable-local-accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
jchlanda committed Jan 19, 2022
1 parent 30283c0 commit a49c751
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions clang/test/Driver/sycl-local-accessor-opt.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/// Check the correct handling of sycl-enable-local-accessor option.

// REQUIRES: clang-driver

// RUN: %clang -fsycl -### %s 2>&1 \
// RUN: | FileCheck -check-prefix=CHECK-NO-OPT %s
// CHECK-NO-OPT-NOT: "-sycl-enable-local-accessor"

// RUN: %clang -fsycl -fsycl-targets=nvptx64-nvidia-cuda -### %s 2>&1 \
// RUN: | FileCheck %s
// CHECK: "-sycl-enable-local-accessor"

0 comments on commit a49c751

Please sign in to comment.