You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clang/test/SemaSYCL/intel-max-work-group-size.cpp
+16-22Lines changed: 16 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -15,19 +15,13 @@
15
15
[[intel::max_work_group_size(32, 32, 32)]] voidf3(); // OK
16
16
17
17
// Produce a conflicting attribute warning when the args are different.
18
-
[[intel::max_work_group_size(16, 16, 16)]] voidf4(); // expected-note {{previous attribute is here}}
19
-
[[intel::max_work_group_size(32, 32, 32)]] voidf4() {} // expected-warning {{attribute 'max_work_group_size' is already applied with different arguments}} \
20
-
21
18
[[intel::max_work_group_size(6, 6, 6)]] // expected-note {{previous attribute is here}}
22
19
[[intel::max_work_group_size(16, 16, 16)]] void// expected-warning {{attribute 'max_work_group_size' is already applied with different arguments}}
23
-
f5() {}
24
-
25
-
[[intel::max_work_group_size(2, 2, 2)]] voidf6(); // expected-note {{previous attribute is here}}
26
-
[[intel::max_work_group_size(32, 32, 32)]] voidf6(); // expected-warning {{attribute 'max_work_group_size' is already applied with different arguments}} \
20
+
f4() {}
27
21
28
22
// Catch the easy case where the attributes are all specified at once with
29
23
// different arguments.
30
-
[[intel::max_work_group_size(16, 16, 16), intel::max_work_group_size(2, 2, 2)]] voidf7(); // expected-warning {{attribute 'max_work_group_size' is already applied with different arguments}} expected-note {{previous attribute is here}}
24
+
[[intel::max_work_group_size(16, 16, 16), intel::max_work_group_size(2, 2, 2)]] voidf5(); // expected-warning {{attribute 'max_work_group_size' is already applied with different arguments}} expected-note {{previous attribute is here}}
31
25
32
26
// Show that the attribute works on member functions.
33
27
classFunctor {
@@ -38,30 +32,30 @@ class Functor {
38
32
39
33
// Ensure that template arguments behave appropriately based on instantiations.
0 commit comments