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-global-work-dim-device.cpp
+7-4
Original file line number
Diff line number
Diff line change
@@ -157,23 +157,26 @@ struct TRIFuncObjBad6 {
157
157
};
158
158
159
159
[[sycl::reqd_work_group_size(4, 4, 4)]] // expected-error{{all 'reqd_work_group_size' attribute arguments must be '1' when the 'max_global_work_dim' attribute argument is '0'}}
160
-
voidTRIFuncObjBad6::operator()() const {}
160
+
void
161
+
TRIFuncObjBad6::operator()() const {}
161
162
162
163
structTRIFuncObjBad7 {
163
164
[[intel::max_global_work_dim(0)]] void
164
165
operator()() const;
165
166
};
166
167
167
168
[[sycl::reqd_work_group_size(4, 4, 4)]] // expected-error{{all 'reqd_work_group_size' attribute arguments must be '1' when the 'max_global_work_dim' attribute argument is '0'}}
168
-
voidTRIFuncObjBad7::operator()() const {}
169
+
void
170
+
TRIFuncObjBad7::operator()() const {}
169
171
170
172
structTRIFuncObjBad8 {
171
173
[[intel::max_global_work_dim(0)]] void
172
174
operator()() const;
173
175
};
174
176
175
177
[[intel::max_work_group_size(4, 4, 4)]] // expected-error{{all 'max_work_group_size' attribute arguments must be '1' when the 'max_global_work_dim' attribute argument is '0'}}
176
-
voidTRIFuncObjBad8::operator()() const {}
178
+
void
179
+
TRIFuncObjBad8::operator()() const {}
177
180
178
181
// Tests for incorrect argument values for Intel FPGA function attributes:
179
182
// reqd_work_group_size, max_work_group_size and max_global_work_dim.
0 commit comments