Skip to content

Commit 859afdc

Browse files
committed
Address cr comments; remove unneeded part of test
1 parent d0d3954 commit 859afdc

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

clang/test/SemaSYCL/sycl-device-template-diag.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,5 @@ void kernel_wrapper() {
2323
}
2424

2525
int main() {
26-
int *x = malloc_shared<int>();
27-
kernel_handler kh;
28-
q.submit([&](handler &h) {
29-
h.single_task<class mykern>([=](auto g) {
30-
// expected-error@+1{{SYCL kernel cannot use a non-const global variable}}
31-
x[3] = global_value;
32-
},
33-
kh);
34-
});
3526
kernel_wrapper<int>();
3627
}

0 commit comments

Comments
 (0)