Skip to content

Commit 3a4dd41

Browse files
Fix SemaSYCL/implicit_kernel_type.cpp
1 parent b1ce9b1 commit 3a4dd41

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang/test/SemaSYCL/implicit_kernel_type.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,11 @@ class myWrapper2;
5151
int main() {
5252
queue q;
5353
#ifndef __SYCL_UNNAMED_LAMBDA__
54-
// expected-note@+1 {{InvalidKernelName1 declared here}}
54+
// 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}}
5557
class InvalidKernelName1 {};
5658
q.submit([&](handler &h) {
57-
// expected-error@+1 {{kernel needs to have a globally-visible name}}
5859
h.single_task<InvalidKernelName1>([]() {});
5960
});
6061
#endif

0 commit comments

Comments
 (0)