blob: de2af64d00ecacfcaaa5421504999b6ae46510ce [file] [log] [blame]
Richard Smitha7bd4582015-05-22 01:14:39 +00001// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only
2
3#define OPENCL_CONSTANT 16776962
4int __attribute__((address_space(OPENCL_CONSTANT))) c[3] = {0};
5
6void foo() {
7 c[0] = 1; //expected-error{{read-only variable is not assignable}}
8}