Allow resolving headers from a PCH even after headers+PCH were moved to another path.
[clang.git] / test / Sema / assign.c
blob2d57029fc05f882a618f46d83f8229b450d6a748
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 void *test1(void) { return 0; }
5 void test2 (const struct {int a;} *x) {
6 x->a = 10; // expected-error {{read-only variable is not assignable}}
9 typedef int arr[10];
10 void test3() {
11 const arr b;
12 const int b2[10];
13 b[4] = 1; // expected-error {{read-only variable is not assignable}}
14 b2[4] = 1; // expected-error {{read-only variable is not assignable}}