1 // RUN
: %clang_cc1 -verify %s
2 // RUN
: %clang_cc1 -cl-std
=CL2.0 -verify %s
4 kernel int bar
() { // expected-error
{{kernel must have void return type
}}
8 kernel void main
() { // expected-error
{{kernel cannot be called
'main
'}}
12 int main
() { // expected-error
{{function cannot be called
'main
'}}
16 int
* global x
(int* x
) { // expected-error
{{return type cannot be qualified with address space
}}
20 int
* local x
(int* x
) { // expected-error
{{return type cannot be qualified with address space
}}
24 int
* constant x
(int* x
) { // expected-error
{{return type cannot be qualified with address space
}}