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
// This test verifies that kernel names nested in 'std' and anonymous namespaces are correctly diagnosed.
4
+
3
5
#include"sycl.hpp"
4
6
5
7
namespacestd {
@@ -8,12 +10,6 @@ struct NestedStruct {};
8
10
}; // namespace NestedInStd
9
11
}; // namespace std
10
12
11
-
namespaceNestedInStd {
12
-
namespacestd {
13
-
structNestedStruct {};
14
-
}; // namespace std
15
-
}; // namespace NestedInStd
16
-
17
13
namespace {
18
14
namespaceNestedInAnon {
19
15
structStructInAnonymousNS {};
@@ -36,10 +32,20 @@ struct MyWrapper {
36
32
voidtest() {
37
33
cl::sycl::queue q;
38
34
35
+
// expected-error@Inputs/sycl.hpp:220 {{'std::NestedInStd::NestedStruct' is an invalid kernel name, 'std::NestedInStd::NestedStruct' is declared in the 'std' namespace}}
36
+
// expected-note@+2{{in instantiation of function template specialization}}
0 commit comments