Skip to content

Commit 07c4bff

Browse files
authored
[NFC] Cleanup instrumentation test and hookup warning check (#6196)
The sycl-instrumentation.c test had some inconsistencies, clean these up and check that the expected warning is emitted.
1 parent 53fc8e4 commit 07c4bff

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/test/Driver/sycl-instrumentation.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@
2121

2222
// RUN: %clangxx -fsycl -fno-sycl-instrument-device-code -fsycl-targets=spir64 -### %s 2>&1 \
2323
// RUN: | FileCheck -check-prefixes=CHECK-NONPASSED %s
24-
// RUN: %clangxx -fsycl -fsycl-targets=nvptx64-nvidia-cuda -nocudalib -### %s 2>&1 \
25-
// RUN: | FileCheck -check-prefixes=CHECK-NONPASSED %s
24+
// RUN: %clangxx -fsycl -fsycl-targets=nvptx64-nvidia-cuda -fno-sycl-instrument-device-code -nocudalib -### %s 2>&1 \
25+
// RUN: | FileCheck -check-prefixes=CHECK-NONPASSED,CHECK-WARNING %s
2626
// CHECK-NONPASSED-NOT: "-fsycl-instrument-device-code"
2727
// CHECK-NONPASSED-NOT: "-input={{.*}}libsycl-itt-{{.*}}.{{o|obj}}"
28-
// RUN: %clangxx -fsycl -fsycl-targets=nvptx64-nvidia-cuda -fno-sycl-instrument-device-code -nocudalib -### %s 2>&1 \
29-
// RUN: | FileCheck -check-prefixes=CHECK-NONPASSED %s
3028
// CHECK-WARNING: warning: argument unused during compilation: '-fno-sycl-instrument-device-code'

0 commit comments

Comments
 (0)