2018-04-09 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr45750.c
blob0359c61c6f51dc0c08426cf66933949ee9250788
1 /* { dg-do compile } */
2 /* { dg-options "-O" } */
4 struct S
6 int i;
7 };
9 int invalid[] = 0; /* { dg-error "invalid initializer" } */
11 void foo (void)
13 if (((struct S *)undeclared)->i); /* { dg-error "undeclared" } */
14 /* { dg-message "reported only once" "" { target *-*-* } .-1 } */