Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr53196-2.c
blob1d47b86e4b49310d0818c6c65ad37beb2fd9283e
1 /* PR c/53196 */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c99 -pedantic-errors" } */
5 extern int printf (const char *, ...);
6 struct foo { int i; };
8 int
9 main ()
11 struct foo f = (struct foo_typo) { };
12 /* { dg-error "invalid use of undefined type" "" { target *-*-* } .-1 } */
13 /* { dg-error "ISO C forbids empty initializer braces" "" { target *-*-* } .-2 } */
15 printf ("%d\n", f.i);
16 return 0;