blob: b94d5835ee8bdf4fa93ea38aedd99452c2e33c14 [file] [log] [blame]
// RUN: clang -fsyntax-only -verify %s
void *test1(void) { return 0; }
void test2 (const struct {int a;} *x) {
x->a = 10; // expected-error {{read-only variable is not assignable}}
}