minix/external/bsd/llvm/dist/clang/test/SemaOpenCL/invalid-kernel.cl
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

15 lines
408 B
Common Lisp

// RUN: %clang_cc1 -verify %s
kernel void no_ptrptr(global int **i) { } // expected-error{{kernel parameter cannot be declared as a pointer to a pointer}}
kernel int bar() { // expected-error {{kernel must have void return type}}
return 6;
}
kernel void main() { // expected-error {{kernel cannot be called 'main'}}
}
int main() { // expected-error {{function cannot be called 'main'}}
return 0;
}