invalid-assignment-constant-address-space.cl 165 B

1234567
  1. // RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only
  2. int constant c[3] = {0};
  3. void foo() {
  4. c[0] = 1; //expected-error{{read-only variable is not assignable}}
  5. }