summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/nestfunc-1.c
blob: e34a56b3f578e52e0cba151c7cd4e988c28fb2c4 (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
int
g (int a, int b, int (*gi) (int, int))
{
  if ((*gi) (a, b))
    return a;
  else
    return b;
}

f ()
{
#ifndef NO_TRAMPOLINES
  int i, j;
  int f2 (int a, int b)
    {
      return a > b;
    }

  if (g (1, 2, f2) != 2)
    abort ();
#endif
}

main ()
{
  f ();
  exit (0);
}