PR middle-end/27945
[official-gcc.git] / gcc / testsuite / gcc.dg / pr18963-1.c
blobdf43c6543f78c8b9a4c33fbd4bee52eee0bbc90f
1 /* { dg-do run } */
2 /* { dg-options "" } */
4 static int barf ();
6 int foo ()
7 {
8 auto int barf ();
9 int j = 4;
11 int barf () {
12 return j;
15 return barf ();
18 static int barf () {
19 return 3;
22 extern void exit (int);
23 extern void abort ();
25 int main (int argc, char *argv[]) {
26 if (foo () != 4)
27 abort ();
28 exit (0);