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
// expected-error@+1 {{taking address of a function not marked with `intel::device_indirectly_callable attribute` is not allowed in SYCL device code}}
40
+
// expected-error@+1 {{taking address of a function not marked with 'intel::device_indirectly_callable' attribute is not allowed in SYCL device code}}
41
41
Fn(As...);
42
42
}
43
43
44
44
voidbasicUsage() {
45
-
// expected-error@+1 {{taking address of a function not marked with `intel::device_indirectly_callable attribute` is not allowed in SYCL device code}}
45
+
// expected-error@+1 {{taking address of a function not marked with 'intel::device_indirectly_callable' attribute is not allowed in SYCL device code}}
46
46
int (*p)(int) = &badFoo;
47
-
// expected-error@+1 {{taking address of a function not marked with `intel::device_indirectly_callable attribute` is not allowed in SYCL device code}}
47
+
// expected-error@+1 {{taking address of a function not marked with 'intel::device_indirectly_callable' attribute is not allowed in SYCL device code}}
48
48
int (*p2)(int) = badFoo;
49
49
}
50
50
@@ -68,32 +68,32 @@ int main() {
68
68
// expected-note@#KernelSingleTaskKernelFuncCall 2{{called by 'kernel_single_task<Basic}}
69
69
h.single_task<classBasic>(
70
70
[=]() {
71
-
// expected-error@+1 {{taking address of a function not marked with `intel::device_indirectly_callable attribute` is not allowed in SYCL device code}}
71
+
// expected-error@+1 {{taking address of a function not marked with 'intel::device_indirectly_callable' attribute is not allowed in SYCL device code}}
72
72
int (*p)(int) = &badFoo;
73
-
// expected-error@+1 {{taking address of a function not marked with `intel::device_indirectly_callable attribute` is not allowed in SYCL device code}}
73
+
// expected-error@+1 {{taking address of a function not marked with 'intel::device_indirectly_callable' attribute is not allowed in SYCL device code}}
74
74
int (*p2)(int) = badFoo;
75
75
76
76
// OK
77
77
int (*p3)(int) = &goodFoo;
78
78
int (*p4)(int) = goodFoo;
79
79
80
-
// expected-error@+1 {{taking address of a function not marked with `intel::device_indirectly_callable attribute` is not allowed in SYCL device code}}
80
+
// expected-error@+1 {{taking address of a function not marked with 'intel::device_indirectly_callable' attribute is not allowed in SYCL device code}}
81
81
auto p5 = &externalBadFoo;
82
82
auto *p6 = &externalGoodFoo;
83
83
84
84
// Make sure that assignment is diagnosed correctly;
85
85
int (*a)(int);
86
-
// expected-error@+1 {{taking address of a function not marked with `intel::device_indirectly_callable attribute` is not allowed in SYCL device code}}
86
+
// expected-error@+1 {{taking address of a function not marked with 'intel::device_indirectly_callable' attribute is not allowed in SYCL device code}}
87
87
a = badFoo;
88
-
// expected-error@+1 {{taking address of a function not marked with `intel::device_indirectly_callable attribute` is not allowed in SYCL device code}}
88
+
// expected-error@+1 {{taking address of a function not marked with 'intel::device_indirectly_callable' attribute is not allowed in SYCL device code}}
89
89
a = &badFoo;
90
90
91
91
a = goodFoo;
92
92
a = &goodFoo;
93
93
94
-
// expected-error@+1 {{taking address of a function not marked with `intel::device_indirectly_callable attribute` is not allowed in SYCL device code}}
94
+
// expected-error@+1 {{taking address of a function not marked with 'intel::device_indirectly_callable' attribute is not allowed in SYCL device code}}
95
95
constexprauto b = badFoo;
96
-
// expected-error@+1 {{taking address of a function not marked with `intel::device_indirectly_callable attribute` is not allowed in SYCL device code}}
96
+
// expected-error@+1 {{taking address of a function not marked with 'intel::device_indirectly_callable' attribute is not allowed in SYCL device code}}
97
97
constexprauto c = &badFoo;
98
98
// expected-note@+1 {{called by 'operator()'}}
99
99
basicUsage();
@@ -104,10 +104,10 @@ int main() {
104
104
// expected-note@#KernelSingleTaskKernelFuncCall {{called by 'kernel_single_task<Members}}
105
105
h.single_task<classMembers>(
106
106
[=]() {
107
-
// expected-error@+1 {{taking address of a function not marked with `intel::device_indirectly_callable attribute` is not allowed in SYCL device code}}
107
+
// expected-error@+1 {{taking address of a function not marked with 'intel::device_indirectly_callable' attribute is not allowed in SYCL device code}}
108
108
auto p = &ForMembers::badMember;
109
109
auto p1 = &ForMembers::goodMember;
110
-
// expected-error@+1 {{taking address of a function not marked with `intel::device_indirectly_callable attribute` is not allowed in SYCL device code}}
110
+
// expected-error@+1 {{taking address of a function not marked with 'intel::device_indirectly_callable' attribute is not allowed in SYCL device code}}
111
111
auto *p2 = &ForMembers::badStaticMember;
112
112
});
113
113
});
@@ -116,24 +116,24 @@ int main() {
116
116
// expected-note@#KernelSingleTaskKernelFuncCall 2{{called by 'kernel_single_task<RunVia}}
117
117
h.single_task<classRunVia>(
118
118
[=]() {
119
-
// expected-error@+1 {{taking address of a function not marked with `intel::device_indirectly_callable attribute` is not allowed in SYCL device code}}
119
+
// expected-error@+1 {{taking address of a function not marked with 'intel::device_indirectly_callable' attribute is not allowed in SYCL device code}}
120
120
int baz = runFn(badFoo);
121
121
122
122
baz = runFn(goodFoo);
123
123
124
-
// expected-error@+1 2{{taking address of a function not marked with `intel::device_indirectly_callable attribute` is not allowed in SYCL device code}}
124
+
// expected-error@+1 2{{taking address of a function not marked with 'intel::device_indirectly_callable' attribute is not allowed in SYCL device code}}
125
125
baz = runFn1(badFoo);
126
126
127
127
baz = runFn1(goodFoo);
128
128
129
-
// expected-error@+1 2{{taking address of a function not marked with `intel::device_indirectly_callable attribute` is not allowed in SYCL device code}}
129
+
// expected-error@+1 2{{taking address of a function not marked with 'intel::device_indirectly_callable' attribute is not allowed in SYCL device code}}
130
130
templateCaller(badFoo, 2);
131
131
templateCaller(goodFoo, 1);
132
132
133
133
templateCaller1<goodFoo>(1);
134
134
135
135
// expected-note@+2 {{called by 'operator()'}}
136
-
// expected-error@+1 {{taking address of a function not marked with `intel::device_indirectly_callable attribute` is not allowed in SYCL device code}}
136
+
// expected-error@+1 {{taking address of a function not marked with 'intel::device_indirectly_callable' attribute is not allowed in SYCL device code}}
0 commit comments