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