Skip to content

Commit ee1ae4f

Browse files
committed
[SYCL] Test reference_count deprecation warnings in sycl_2020_deprecations.cpp
1 parent a1bc105 commit ee1ae4f

2 files changed

Lines changed: 11 additions & 47 deletions

File tree

sycl/test-e2e/DeprecatedFeatures/reference_count.cpp

Lines changed: 0 additions & 47 deletions
This file was deleted.

sycl/test/warnings/sycl_2020_deprecations.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,17 @@ int main() {
138138
// expected-warning@+1{{'extensions' is deprecated: deprecated in SYCL 2020, use device::get_info() with info::device::aspects instead}}
139139
using PE = sycl::info::platform::extensions;
140140

141+
// expected-warning@+1{{'reference_count' is deprecated: info::context::reference_count is not part of SYCL 2020}}
142+
using CRC = sycl::info::context::reference_count;
143+
// expected-warning@+1{{'reference_count' is deprecated: info::device::reference_count is not part of SYCL 2020}}
144+
using DRC = sycl::info::device::reference_count;
145+
// expected-warning@+1{{'reference_count' is deprecated: info::event::reference_count is not part of SYCL 2020}}
146+
using ERC = sycl::info::event::reference_count;
147+
// expected-warning@+1{{'reference_count' is deprecated: info::kernel::reference_count is not part of SYCL 2020}}
148+
using KRC = sycl::info::kernel::reference_count;
149+
// expected-warning@+1{{'reference_count' is deprecated: info::queue::reference_count is not part of SYCL 2020}}
150+
using QRC = sycl::info::queue::reference_count;
151+
141152
// expected-error@+1{{no member named 'INTEL' in namespace 'sycl'}}
142153
auto SL = sycl::INTEL::source_language::opencl_c;
143154
(void)SL;

0 commit comments

Comments
 (0)