PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / pr7356-2.c
blobad679756978ddc0ef99709b4261a3d75d76eb8a3
1 /* { dg-options "-fdiagnostics-show-caret" } */
3 int i /* { dg-error "6: expected ';' before 'int'" } */
4 int j;
5 /* { dg-begin-multiline-output "" }
6 int i
9 int j;
10 ~~~
11 { dg-end-multiline-output "" } */
14 void test (void)
16 int i /* { dg-error "8: expected ';' before 'int'" } */
17 int j;
19 /* { dg-begin-multiline-output "" }
20 int i
23 int j;
24 ~~~
25 { dg-end-multiline-output "" } */
28 int old_style_params (first, second)
29 int first;
30 int second;
32 return first + second;