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 b1ce9b1 commit 3a4dd41Copy full SHA for 3a4dd41
clang/test/SemaSYCL/implicit_kernel_type.cpp
@@ -51,10 +51,11 @@ class myWrapper2;
51
int main() {
52
queue q;
53
#ifndef __SYCL_UNNAMED_LAMBDA__
54
- // expected-note@+1 {{InvalidKernelName1 declared here}}
+ // expected-note@+3 {{InvalidKernelName1 declared here}}
55
+ // expected-note@+4{{in instantiation of function template specialization}}
56
+ // expected-error@28 {{kernel needs to have a globally-visible name}}
57
class InvalidKernelName1 {};
58
q.submit([&](handler &h) {
- // expected-error@+1 {{kernel needs to have a globally-visible name}}
59
h.single_task<InvalidKernelName1>([]() {});
60
});
61
#endif
0 commit comments