Sign in
cobalt
/
cobalt
/
01f3c94b226da58e62558a0b863c39a390e6cd8c
/
.
/
src
/
third_party
/
llvm-project
/
clang
/
test
/
SemaOpenCL
/
sizeof.cl
blob: 69fc4309ce2eaed7076bec066684ff15e10ed3fb [
file
] [
log
] [
blame
]
//
RUN
:
%
clang_cc1
%
s -verify -fsyntax-only
kernel void test
(
global int
*
buf
)
{
buf
[
0
]
=
sizeof
(
void
)
; // expected-error {{invalid application of 'sizeof' to a void type}}
}