Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
82aaebeaad75456bc736ea1c474479bb6597305d
/
.
/
test
/
SemaOpenCL
/
invalid-kernel.cl
blob: fb8ce5876f937825f1bffd23db889afd3dd8c780 [
file
] [
log
] [
blame
]
//
RUN
:
%
clang_cc1 -verify
%
s
kernel void no_ptrptr
(
global int
**
i
)
{
}
//
expected-error
{{
kernel argument cannot be declared as a pointer to a pointer
}}
kernel int bar
(
)
{
//
expected-error
{{
kernel must have void return type
}}
return
6
;
}