summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr18963-1.c
blob: df43c6543f78c8b9a4c33fbd4bee52eee0bbc90f (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
/* { dg-do run } */
/* { dg-options "" } */

static int barf ();

int foo ()
{ 
  auto int barf ();
  int j = 4;

  int barf () {
    return j;
  }

  return barf ();
}

static int barf () {
  return 3;
}

extern void exit (int);
extern void abort ();

int main (int argc, char *argv[]) {
  if (foo () != 4)
    abort ();
  exit (0);
}