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
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
SemaOpenCL
/
invalid-assignment-constant-address-space.cl
blob
1734b258937ed64c71081f0bce260089351aad91
1
//
RUN
:
%clang_cc1 %s -verify -pedantic -fsyntax-only
2
3
int constant c
[3] = {0};
4
5
void foo(void) {
6
c[0] = 1; //expected-error{{read-only variable is not assignable}}
7
}