blob: e124bb8aef63918a4934dca95fb9f9847dd6ec3f [file] [log] [blame]
/* { dg-do run } */
/* APPLE LOCAL testsuite nested functions */
/* { dg-options "-fnested-functions" } */
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);
}