2015-05-22 09:14:39 +08:00
|
|
|
// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only
|
|
|
|
|
2016-05-12 02:38:21 +08:00
|
|
|
#define OPENCL_CONSTANT 8388354
|
2015-05-22 09:14:39 +08:00
|
|
|
int __attribute__((address_space(OPENCL_CONSTANT))) c[3] = {0};
|
|
|
|
|
|
|
|
void foo() {
|
|
|
|
c[0] = 1; //expected-error{{read-only variable is not assignable}}
|
|
|
|
}
|