// RUN: %clang_cc1 %s -cl-std=CL2.0 -verify -pedantic -fsyntax-only
void __attribute__; // expected-note {{candidate function not viable: no known conversion from 'int' to '__private queue_t' for 1st argument}} // expected-note {{candidate function}}
void __attribute__ foo; // expected-note {{candidate function not viable: no known conversion from 'int' to '__private queue_t' for 1st argument}} // expected-note {{candidate function}}
void kernel ker {
queue_t q;
foo;
foo;
foo; // expected-error {{no matching function for call to 'foo'}}
foo; // expected-error {{no matching function for call to 'foo'}}
}
foo