1 /* { dg-options "-fdiagnostics-show-caret -Wpedantic" } */
2 
3 /* Struct with extra semicolon.  */
4 struct s1 { int i;; }; /* { dg-warning "19: extra semicolon in struct or union specified" } */
5 /* { dg-begin-multiline-output "" }
6  struct s1 { int i;; };
7                    ^
8                    -
9    { dg-end-multiline-output "" } */
10 
11 /* Union with extra semicolon.  */
12 union u1 { int i;; }; /* { dg-warning "18: extra semicolon in struct or union specified" } */
13 /* { dg-begin-multiline-output "" }
14  union u1 { int i;; };
15                   ^
16                   -
17    { dg-end-multiline-output "" } */
18