1 /* { dg-options "-fdiagnostics-show-caret" } */
5 void missing_open_paren (void)
7 if foo ()) /* { dg-error "expected '\\(' before 'foo'" } */
10 /* { dg-begin-multiline-output "" }
14 { dg-end-multiline-output "" } */
18 void missing_close_square (void)
20 const char test [42; /* { dg-error "22: expected ']' before ';' token" } */
21 /* { dg-begin-multiline-output "" }
25 { dg-end-multiline-output "" } */
28 int missing_semicolon (void)
30 return 42 /* { dg-error "expected ';'" } */
32 /* { dg-begin-multiline-output "" }
38 { dg-end-multiline-output "" } */
41 int missing_colon_in_switch (int val)
45 case 42 /* { dg-error "expected ':' before 'return'" } */
47 /* { dg-begin-multiline-output "" }
53 { dg-end-multiline-output "" } */