// REQUIRES: any-device // RUN: %clangxx -fsycl %s -o %t.out // RUN: %t.out #include class Test; int main() { sycl::queue q; int *p = sycl::malloc_shared(1, q); *p = 0; q.single_task([=]() { *p = 42; }); q.wait(); bool Failed = *p != 42; sycl::free(p, q); return Failed; }