• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only
2
3void __attribute__((overloadable)) foo(event_t, __local char *); // expected-note {{candidate function not viable: no known conversion from '__global int *' to '__local char *' for 2nd argument}}
4void __attribute__((overloadable)) foo(event_t, __local float *); // expected-note {{candidate function not viable: no known conversion from '__global int *' to '__local float *' for 2nd argument}}
5
6void kernel ker(__local char *src1, __local float *src2, __global int *src3) {
7  event_t evt;
8  foo(evt, src1);
9  foo(0, src2);
10  foo(evt, src3); // expected-error {{no matching function for call to 'foo'}}
11}
12