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
Copy file name to clipboardExpand all lines: clang/test/SemaSYCL/device-indirectly-callable-attr.cpp
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -12,16 +12,21 @@ int N;
12
12
void
13
13
bar() {}
14
14
15
-
[[intel::device_indirectly_callable]] // expected-error {{'device_indirectly_callable' attribute cannot be applied to a static function or function in an anonymous namespace}}
15
+
[[intel::device_indirectly_callable]] // expected-error {{'device_indirectly_callable' attribute cannot be applied to a function without external linkage}}
16
16
staticvoid
17
17
func1() {}
18
18
19
19
namespace {
20
-
[[intel::device_indirectly_callable]] // expected-error {{'device_indirectly_callable' attribute cannot be applied to a static function or function in an anonymous namespace}}
20
+
[[intel::device_indirectly_callable]] // expected-error {{'device_indirectly_callable' attribute cannot be applied to a function without external linkage}}
21
21
void
22
22
func2() {}
23
+
24
+
structUnnX {};
23
25
}
24
26
27
+
[[intel::device_indirectly_callable]] // expected-error {{'device_indirectly_callable' attribute cannot be applied to a function without external linkage}}
Copy file name to clipboardExpand all lines: clang/test/SemaSYCL/sycl-device.cpp
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -12,14 +12,19 @@ int N;
12
12
__attribute__((sycl_device(3))) // expected-error {{'sycl_device' attribute takes no arguments}}
13
13
void bar() {}
14
14
15
-
__attribute__((sycl_device)) // expected-error {{'sycl_device' attribute cannot be applied to a static function or function in an anonymous namespace}}
15
+
__attribute__((sycl_device)) // expected-error {{'sycl_device' attribute cannot be applied to a function without external linkage}}
16
16
static void func1() {}
17
17
18
18
namespace {
19
-
__attribute__((sycl_device)) // expected-error {{'sycl_device' attribute cannot be applied to a static function or function in an anonymous namespace}}
19
+
__attribute__((sycl_device)) // expected-error {{'sycl_device' attribute cannot be applied to a function without external linkage}}
20
20
voidfunc2() {}
21
+
22
+
structUnnX {};
21
23
}
22
24
25
+
__attribute__((sycl_device)) // expected-error {{'sycl_device' attribute cannot be applied to a function without external linkage}}
0 commit comments