* gcc.dg/stack-check-5.c: Skip with -fstack-protector.
[official-gcc.git] / gcc / testsuite / gcc.dg / struct-semi-1.c
blob8ac90eaee757eebbf43aaac6d3f26b866fae3a23
1 /* Test diagnostics for missing and extra semicolons in structures.
2 Test with no special options. */
3 /* Origin: Joseph Myers <joseph@codesourcery.com> */
4 /* { dg-do compile } */
5 /* { dg-options "" } */
7 struct s0 { ; };
8 struct s1 {
9 int a;
11 int b;
13 struct s2 {
15 int c
16 }; /* { dg-warning "no semicolon at end of struct or union" } */
17 struct s3 {
18 int d
19 }; /* { dg-warning "no semicolon at end of struct or union" } */