repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang] Handle __declspec() attributes in using
[llvm-project.git]
/
clang
/
test
/
SemaOpenCL
/
sizeof.cl
blob
69fc4309ce2eaed7076bec066684ff15e10ed3fb
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
}