jit: Fix Darwin bootstrap after r15-1699.
[official-gcc.git] / gcc / testsuite / g++.dg / semicolon-fixits.C
blob198e306c950d627b67b0e5aae25c4fe9b6e3c017
1 // { dg-do compile { target c++98_only } }
2 /* { dg-options "-fdiagnostics-show-caret -Wpedantic" } */
4 /* Struct with extra semicolon.  */
5 struct s1 { int i;; }; /* { dg-warning "19: extra .;." } */
6 /* { dg-begin-multiline-output "" }
7  struct s1 { int i;; };
8                    ^
9                    -
10    { dg-end-multiline-output "" } */
12 /* Union with extra semicolon.  */
13 union u1 { int i;; }; /* { dg-warning "18: extra .;." } */
14 /* { dg-begin-multiline-output "" }
15  union u1 { int i;; };
16                   ^
17                   -
18    { dg-end-multiline-output "" } */