[LV] Add test showing debug output for loops with uncountable BTCs.
[llvm-project.git] / clang / test / SemaOpenCL / event_t_overload.cl
blobeaf05a0489fae06829ec72375ea7f9c551941e30
1 // RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only
3 void __attribute__((overloadable)) foo(event_t, __local char *); // expected-note {{candidate function}}
4 void __attribute__((overloadable)) foo(event_t, __local float *); // expected-note {{candidate function}}
6 void 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'}}