Skip to content

Commit 0ece5d9

Browse files
committed
warnings.cpp RUN fix
Signed-off-by: Aleksander Fadeev <[email protected]>
1 parent 81d2657 commit 0ece5d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/test/warnings/warnings.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl -I %source_sycl_include -Wall -Wextra -Wno-ignored-attributes -Wno-deprecated-declarations -Wpessimizing-move -Wunused-variable -Wmismatched-tags -Wunneeded-internal-declaration -Werror -Wno-unknown-cuda-version %s -o %t.out
1+
// RUN: %clangxx -fsycl --no-system-header-prefix=CL/ -Wall -Wextra -Wno-ignored-attributes -Wpessimizing-move -Wunused-variable -Wmismatched-tags -Wunneeded-internal-declaration -Werror -Wno-unknown-cuda-version %s -o %t.out
22

33
#include <CL/sycl.hpp>
44

@@ -7,7 +7,7 @@ using namespace cl::sycl;
77
int main(void) {
88
// add a very simple kernel to see if compilation succeeds with -Werror
99
int data1[10] = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
10-
10+
exit(1);
1111
buffer<int, 1> B(data1, range<1>(10), {property::buffer::use_host_ptr()});
1212
queue Q;
1313
Q.submit([&](handler &CGH) {

0 commit comments

Comments
 (0)