blob: 1734b258937ed64c71081f0bce260089351aad91 [file] [log] [blame]
// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only
int constant c[3] = {0};
void foo(void) {
c[0] = 1; //expected-error{{read-only variable is not assignable}}
}