Sign in
fuchsia
/
third_party
/
swift-clang
/
a40ea3abe6e2f0b338d00c38fe7d724241c5af97
/
.
/
test
/
Sema
/
invalid-assignment-constant-address-space.c
blob: de2af64d00ecacfcaaa5421504999b6ae46510ce [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only
#define
OPENCL_CONSTANT
16776962
int
__attribute__
((
address_space
(
OPENCL_CONSTANT
)))
c
[
3
]
=
{
0
};
void
foo
()
{
c
[
0
]
=
1
;
//expected-error{{read-only variable is not assignable}}
}