111
|
1 /* { dg-options "-fdiagnostics-show-caret" } */
|
|
2
|
|
3 int i /* { dg-error "6: expected ';' before 'int'" } */
|
|
4 int j;
|
|
5 /* { dg-begin-multiline-output "" }
|
|
6 int i
|
|
7 ^
|
|
8 ;
|
|
9 int j;
|
|
10 ~~~
|
|
11 { dg-end-multiline-output "" } */
|
|
12
|
|
13
|
|
14 void test (void)
|
|
15 {
|
|
16 int i /* { dg-error "8: expected ';' before 'int'" } */
|
|
17 int j;
|
|
18
|
|
19 /* { dg-begin-multiline-output "" }
|
|
20 int i
|
|
21 ^
|
|
22 ;
|
|
23 int j;
|
|
24 ~~~
|
|
25 { dg-end-multiline-output "" } */
|
|
26 }
|
|
27
|
|
28 int old_style_params (first, second)
|
|
29 int first;
|
|
30 int second;
|
|
31 {
|
|
32 return first + second;
|
|
33 }
|