Sign in
cobalt
/
cobalt
/
63c7ad499be49ef959b3b1c5ea3f48491aa033d3
/
.
/
src
/
third_party
/
llvm-project
/
clang
/
test
/
SemaOpenCL
/
invalid-assignment-constant-address-space.cl
blob: 32917c493ce3a81a6628a406100cf83c554f1be8 [
file
] [
log
] [
blame
]
//
RUN
:
%
clang_cc1
%
s -verify -pedantic -fsyntax-only
int constant c
[
3
]
=
{
0
}
;
void foo
(
)
{
c
[
0
]
=
1
; //expected-error{{read-only variable is not assignable}}
}