1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 void *test1(void) { return 0; }
5 void test2 (const struct {int a;} *x) {
6 // expected-note@-1 {{variable 'x' declared const here}}
9 // expected-error-re@-1 {{cannot assign to variable 'x' with const-qualified type 'const struct (anonymous struct at {{.*}}assign.c:5:19) *'}}
16 b[4] = 1; // expected-error {{read-only variable is not assignable}}
17 b2[4] = 1; // expected-error {{read-only variable is not assignable}}