2013-02-08 00:05:33 +08:00
|
|
|
// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only
|
|
|
|
|
2016-09-03 06:59:57 +08:00
|
|
|
void __attribute__((overloadable)) foo(event_t, __local char *); // expected-note {{candidate function}}
|
|
|
|
void __attribute__((overloadable)) foo(event_t, __local float *); // expected-note {{candidate function}}
|
2013-02-08 00:05:33 +08:00
|
|
|
|
|
|
|
void kernel ker(__local char *src1, __local float *src2, __global int *src3) {
|
|
|
|
event_t evt;
|
|
|
|
foo(evt, src1);
|
|
|
|
foo(0, src2);
|
2019-05-08 22:23:49 +08:00
|
|
|
foo(evt, src3); // expected-error {{no matching function for call to 'foo'}}
|
2013-02-08 00:05:33 +08:00
|
|
|
}
|