f4a2713ac8
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
15 lines
408 B
Common Lisp
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;
|
|
}
|