Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / init-empty-2.c
bloba6e1a30206a918516a75cd5da3ea5865f53f08db
1 /* Test diagnostic for empty initializer braces. Test with
2 -pedantic. */
3 /* Origin: Joseph Myers <joseph@codesourcery.com> */
4 /* { dg-do compile } */
5 /* { dg-options "-std=gnu99 -pedantic" } */
7 struct s { int a; } x = { }; /* { dg-warning "warning: ISO C forbids empty initializer braces" } */
9 struct s *p = &(struct s){ }; /* { dg-warning "warning: ISO C forbids empty initializer braces" } */