Skip to content

Commit 53c05d3

Browse files
[SYCL] Remove preview guard from a few tests (#13384)
All pre-existing preview features have been uplifted to be available by default.
1 parent 3f841ff commit 53c05d3

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

sycl/test/basic_tests/handler/handler_generic_lambda_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clangxx -fsycl -fsyntax-only -Xclang -verify %s -I %sycl_include
2-
// RUN: %if preview-breaking-changes-supported %{%clangxx -fsycl -fsyntax-only -Xclang -verify %s -I %sycl_include -fpreview-breaking-changes -DPREVIEW_BREAKING_CHANGES%}
2+
// RUN: %if preview-breaking-changes-supported %{ %clangxx -fsycl -fsyntax-only -Xclang -verify %s -I %sycl_include -fpreview-breaking-changes %}
33
// expected-no-diagnostics
44
//==--------------- handler_generic_lambda_interface.cpp -------------------==//
55
//

sycl/test/basic_tests/handler/parallel_for_arg_restrictions.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clangxx -fsycl -fsyntax-only -ferror-limit=0 -Xclang -verify -Xclang -verify-ignore-unexpected=note,warning,error %s
2-
// RUN: %if preview-breaking-changes-supported %{%clangxx -fsycl -fpreview-breaking-changes -fsyntax-only -ferror-limit=0 -Xclang -verify -Xclang -verify-ignore-unexpected=note,warning,error %s -DPREVIEW_BREAKING_CHANGES%}
2+
// RUN: %if preview-breaking-changes-supported %{%clangxx -fsycl -fpreview-breaking-changes -fsyntax-only -ferror-limit=0 -Xclang -verify -Xclang -verify-ignore-unexpected=note,warning,error %s %}
33

44
// Tests the requirements on the first argument in a kernel lambda.
55
// TODO: Some of the behavior is currently guarded behind the
@@ -19,8 +19,6 @@ template <int Dims> struct ConvertibleFromNDItem {
1919
int main() {
2020
sycl::queue Q;
2121

22-
// TODO: Remove this when the guarded behavior is promoted.
23-
#ifdef PREVIEW_BREAKING_CHANGES
2422
// ND-range parallel_for with item.
2523
Q.submit([&](sycl::handler &CGH) {
2624
// expected-error@sycl/handler.hpp:* {{Kernel argument of a sycl::parallel_for with sycl::nd_range must be either sycl::nd_item or be convertible from sycl::nd_item}}
@@ -88,7 +86,6 @@ int main() {
8886
CGH.parallel_for(sycl::range{1}, [=](sycl::item<1> it, sycl::item<1> it,
8987
kernel_handler kh) {});
9088
});
91-
#endif // PREVIEW_BREAKING_CHANGES
9289

9390
// Range parallel_for with nd_item.
9491
Q.submit([&](sycl::handler &CGH) {

0 commit comments

Comments
 (0)