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/sycl-device-intel-max-global-work-dim-template.cpp
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -73,10 +73,8 @@ template <int size>
73
73
// In case the value of 'max_global_work_dim' attribute equals to 0 we shall
74
74
// ensure that if max_work_group_size and reqd_work_group_size attributes exist,
75
75
// they hold equal values (1, 1, 1).
76
-
77
-
// TODO: Test case compiles now without any diagnostic but it shouldn't.
78
76
template <int N>
79
-
[[intel::max_work_group_size(N, N, N)]] voidfunc5(); //OK now. Error is expected here.
77
+
[[intel::max_work_group_size(N, N, N)]] voidfunc5(); //expected-error {{all 'max_work_group_size' attribute arguments must be '1' when the 'max_global_work_dim' attribute argument is '0'}}
80
78
template <int N>
81
79
[[intel::max_global_work_dim(0)]] voidfunc5();
82
80
@@ -129,7 +127,7 @@ int check() {
129
127
func3<3>(); // OK
130
128
func3<-1>(); // expected-note {{in instantiation of function template specialization 'func3<-1>' requested here}}
131
129
func4<2>(); // expected-note {{in instantiation of function template specialization 'func4<2>' requested here}}
132
-
func5<6>(); //OK now. Expecte note here.
130
+
func5<6>(); //expected-note {{in instantiation of function template specialization 'func5<6>' requested here}}
133
131
func6<2>(); // expected-note {{in instantiation of function template specialization 'func6<2>' requested here}}
134
132
func7<2>(); // expected-note {{in instantiation of function template specialization 'func7<2>' requested here}}
135
133
func8<2>(); // expected-note {{in instantiation of function template specialization 'func8<2>' requested here}}
0 commit comments