We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e98d732 commit 32e4311Copy full SHA for 32e4311
clang/test/SemaSYCL/sub-group-size2.cpp
@@ -0,0 +1,12 @@
1
+// RUN: %clang_cc1 -fsycl-is-device -sycl-std=2020 -fsyntax-only %s -ast-dump -Wno-ignored-attributes | FileCheck %s
2
+
3
+// Check that when an invalid value is specified for the attribute
4
+// intel::named_sub_group_size, an invalid attribute value is not
5
+// added to the function declaration.
6
7
+// CHECK: FunctionDecl {{.*}} f1 'void ()'
8
+// CHECK-NOT: IntelNamedSubGroupSizeAttr
9
+[[intel::named_sub_group_size(invalid)]] void f1();
10
+// CHECK: FunctionDecl {{.*}} f2 'void ()'
11
12
+[[intel::named_sub_group_size("invalid string")]] void f2();
0 commit comments