2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / nestfunc-1.c
blobe34a56b3f578e52e0cba151c7cd4e988c28fb2c4
1 int
2 g (int a, int b, int (*gi) (int, int))
4 if ((*gi) (a, b))
5 return a;
6 else
7 return b;
10 f ()
12 #ifndef NO_TRAMPOLINES
13 int i, j;
14 int f2 (int a, int b)
16 return a > b;
19 if (g (1, 2, f2) != 2)
20 abort ();
21 #endif
24 main ()
26 f ();
27 exit (0);