Sign in
llvm
/
llvm-project
/
8dec0b23da116e1cf0cd49c955ff1fadf52d5096
/
.
/
clang
/
test
/
SemaOpenCL
/
sizeof.cl
blob: 69fc4309ce2eaed7076bec066684ff15e10ed3fb [
file
] [
log
] [
blame
]
Joey Gouly
4ba0f1e
2013-12-31 15:47:49 +0000
[
diff
] [
blame
]
1
//
RUN
:
%
clang_cc1
%
s -verify -fsyntax-only
2
3
kernel void test
(
global int
*
buf
)
{
4
buf
[
0
]
=
sizeof
(
void
)
; // expected-error {{invalid application of 'sizeof' to a void type}}
5
}