Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaOpenCL / queue_t_overload.cl
blob9f0cb841180c91d6f381164bc4759ffab149fab1
1 // RUN: %clang_cc1 %s -cl-std=CL2.0 -verify -pedantic -fsyntax-only
3 void __attribute__((overloadable)) foo(queue_t, __local char *); // expected-note {{candidate function not viable: no known conversion from 'int' to '__private queue_t' for 1st argument}} // expected-note {{candidate function}}
4 void __attribute__((overloadable)) foo(queue_t, __local float *); // expected-note {{candidate function not viable: no known conversion from 'int' to '__private queue_t' for 1st argument}} // expected-note {{candidate function}}
6 void kernel ker(__local char *src1, __local float *src2, __global int *src3) {
7 queue_t q;
8 foo(q, src1);
9 foo(0, src2);
10 foo(q, src3); // expected-error {{no matching function for call to 'foo'}}
11 foo(1, src3); // expected-error {{no matching function for call to 'foo'}}