Make transitive relations an oracle option
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / nestfunc-1.c
blobaf91373811365b8bab6ba1cc13b42839dfef5f85
1 /* { dg-require-effective-target trampolines } */
3 void abort (void);
4 void exit (int);
6 int
7 g (int a, int b, int (*gi) (int, int))
9 if ((*gi) (a, b))
10 return a;
11 else
12 return b;
15 void
16 f ()
18 int i, j;
19 int f2 (int a, int b)
21 return a > b;
24 if (g (1, 2, f2) != 2)
25 abort ();
28 int
29 main (void)
31 f ();
32 exit (0);