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