Home | History | Annotate | Download | only in Sema
      1 // RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only
      2 
      3 #define OPENCL_CONSTANT 8388354
      4 int __attribute__((address_space(OPENCL_CONSTANT))) c[3] = {0};
      5 
      6 void foo() {
      7   c[0] = 1; //expected-error{{read-only variable is not assignable}}
      8 }
      9