@@ -32,27 +32,27 @@ struct MyWrapper {
32
32
public:
33
33
void test () {
34
34
cl::sycl::queue q;
35
- // expected-error@#KernelSingleTask {{'InvalidKernelName1' should be globally- visible}}
35
+ // expected-error@#KernelSingleTask {{'InvalidKernelName1' should be globally visible}}
36
36
// expected-note@+3{{in instantiation of function template specialization}}
37
37
class InvalidKernelName1 {};
38
38
q.submit ([&](cl::sycl::handler &h) {
39
39
h.single_task <InvalidKernelName1>([] {});
40
40
});
41
41
42
- // expected-error@#KernelSingleTask {{'namespace1::KernelName<InvalidKernelName2>' should be globally- visible}}
42
+ // expected-error@#KernelSingleTask {{'namespace1::KernelName<InvalidKernelName2>' should be globally visible}}
43
43
// expected-note@+3{{in instantiation of function template specialization}}
44
44
class InvalidKernelName2 {};
45
45
q.submit ([&](cl::sycl::handler &h) {
46
46
h.single_task <namespace1::KernelName<InvalidKernelName2>>([] {});
47
47
});
48
48
49
- // expected-error@#KernelSingleTask {{'MyWrapper::InvalidKernelName0' should be globally- visible}}
49
+ // expected-error@#KernelSingleTask {{'MyWrapper::InvalidKernelName0' should be globally visible}}
50
50
// expected-note@+2{{in instantiation of function template specialization}}
51
51
q.submit ([&](cl::sycl::handler &h) {
52
52
h.single_task <InvalidKernelName0>([] {});
53
53
});
54
54
55
- // expected-error@#KernelSingleTask {{'namespace1::KernelName<MyWrapper::InvalidKernelName3>' should be globally- visible}}
55
+ // expected-error@#KernelSingleTask {{'namespace1::KernelName<MyWrapper::InvalidKernelName3>' should be globally visible}}
56
56
// expected-note@+2{{in instantiation of function template specialization}}
57
57
q.submit ([&](cl::sycl::handler &h) {
58
58
h.single_task <namespace1::KernelName<InvalidKernelName3>>([] {});
@@ -63,26 +63,26 @@ struct MyWrapper {
63
63
h.single_task <ValidAlias>([] {});
64
64
});
65
65
66
- // expected-error@#KernelSingleTask {{'MyWrapper::InvalidKernelName4' should be globally-visible }}
66
+ // expected-error@#KernelSingleTask {{'std::max_align_t' is an invalid kernel name, 'std::(anonymous)' is declared in the 'std' namespace }}
67
67
// expected-note@+2{{in instantiation of function template specialization}}
68
68
q.submit ([&](cl::sycl::handler &h) {
69
69
h.single_task <std::max_align_t >([] {});
70
70
});
71
71
72
72
using InvalidAlias = InvalidKernelName4;
73
- // expected-error@#KernelSingleTask {{'std::max_align_t' is an invalid kernel name, 'std::(anonymous)' is declared in the 'std' namespace }}
73
+ // expected-error@#KernelSingleTask {{'MyWrapper::InvalidKernelName4' should be globally visible }}
74
74
// expected-note@+2{{in instantiation of function template specialization}}
75
75
q.submit ([&](cl::sycl::handler &h) {
76
76
h.single_task <InvalidAlias>([] {});
77
77
});
78
78
79
79
using InvalidAlias1 = InvalidKernelName5;
80
- // expected-error@#KernelSingleTask {{'namespace1::KernelName<MyWrapper::InvalidKernelName5>' should be globally- visible}}
80
+ // expected-error@#KernelSingleTask {{'namespace1::KernelName<MyWrapper::InvalidKernelName5>' should be globally visible}}
81
81
// expected-note@+2{{in instantiation of function template specialization}}
82
82
q.submit ([&](cl::sycl::handler &h) {
83
83
h.single_task <namespace1::KernelName<InvalidAlias1>>([] {});
84
84
});
85
- // expected-error@#KernelSingleTask {{'Templated_kernel_name2<Templated_kernel_name<InvalidKernelName1>>' should be globally- visible}}
85
+ // expected-error@#KernelSingleTask {{'Templated_kernel_name2<Templated_kernel_name<InvalidKernelName1>>' should be globally visible}}
86
86
// expected-note@+2{{in instantiation of function template specialization}}
87
87
q.submit ([&](cl::sycl::handler &h) {
88
88
h.single_task <Templated_kernel_name2<Templated_kernel_name<InvalidKernelName1>>>([] {});
0 commit comments