blob: 8ac90eaee757eebbf43aaac6d3f26b866fae3a23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* Test diagnostics for missing and extra semicolons in structures.
Test with no special options. */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
/* { dg-do compile } */
/* { dg-options "" } */
struct s0 { ; };
struct s1 {
int a;
;
int b;
};
struct s2 {
;
int c
}; /* { dg-warning "no semicolon at end of struct or union" } */
struct s3 {
int d
}; /* { dg-warning "no semicolon at end of struct or union" } */
|