You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
476 B
12 lines
476 B
// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only
|
|
|
|
void __attribute__((overloadable)) foo(event_t, __local char *); // expected-note {{candidate function}}
|
|
void __attribute__((overloadable)) foo(event_t, __local float *); // expected-note {{candidate function}}
|
|
|
|
void kernel ker(__local char *src1, __local float *src2, __global int *src3) {
|
|
event_t evt;
|
|
foo(evt, src1);
|
|
foo(0, src2);
|
|
foo(evt, src3); // expected-error {{no matching function for call to 'foo'}}
|
|
}
|