summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr7356-2.c
blob: ad679756978ddc0ef99709b4261a3d75d76eb8a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* { dg-options "-fdiagnostics-show-caret" } */

int i /* { dg-error "6: expected ';' before 'int'" } */
int j;
/* { dg-begin-multiline-output "" }
 int i 
      ^
      ;
 int j;
 ~~~   
   { dg-end-multiline-output "" } */


void test (void)
{
  int i /* { dg-error "8: expected ';' before 'int'" } */
  int j;

  /* { dg-begin-multiline-output "" }
   int i 
        ^
        ;
   int j;
   ~~~   
     { dg-end-multiline-output "" } */
}

int old_style_params (first, second)
     int first;
     int second;
{
  return first + second;
}