Skip to content

Commit 2d73f27

Browse files
Update sycl_2020_deprecations.cpp
1 parent b064743 commit 2d73f27

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sycl/test/warnings/sycl_2020_deprecations.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,5 +177,10 @@ int main() {
177177
// expected-warning@+1{{'barrier' is deprecated: use 'ext_oneapi_barrier' instead}}
178178
Queue.submit([&](sycl::handler &CGH) { CGH.barrier(); });
179179

180+
cl::sycl::multi_ptr<int, cl::sycl::access::address_space::global_space> a(
181+
nullptr);
182+
// expected-warning@+1 {{'atomic<int sycl::access::address_space::global_space>' is deprecated: sycl::atomic is deprecated since SYCL 2020}}
183+
cl::sycl::atomic<int> b(a);
184+
180185
return 0;
181186
}

0 commit comments

Comments
 (0)