File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -45,14 +45,12 @@ void basicUsage() {
45
45
46
46
template <typename T> void templatedContext () {
47
47
48
- // FIXME: this is likely not diagnosed because of a common problem among
49
- // deferred diagnostics. They don't work from templated context if the
50
- // problematic code doesn't depend on a template parameter. See
51
- // https://github.com/intel/llvm/pull/5114 for an explanation of the problem
52
- // and possible solution.
48
+ // expected-error@+1 {{taking address of a function not marked with 'intel::device_indirectly_callable' attribute is not allowed in SYCL device code}}
53
49
int (*p)(int ) = &badFoo;
50
+ // expected-error@+1 {{taking address of a function not marked with 'intel::device_indirectly_callable' attribute is not allowed in SYCL device code}}
54
51
auto p1 = &ForMembers::badMember;
55
52
53
+ // expected-error@+2 {{taking address of a function not marked with 'intel::device_indirectly_callable' attribute is not allowed in SYCL device code}}
56
54
// expected-note@+1 {{called by 'templatedContext<int>'}}
57
55
templateCaller1<badFoo>(1 );
58
56
}
You can’t perform that action at this time.
0 commit comments