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 81ca1dc commit 9efc407Copy full SHA for 9efc407
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 value is not added to the
5
++// 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