summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr47281.c
blob: 517e8548e3f70029fc7ae7f1af8743e3eb37217f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* { dg-do compile } */

struct T;
typedef void F(void);

F* aux(void (*x)())
{
  return x;
}

void make_mess (int);

F*
get_funloc (void (*x)(int), F* (*y)())
{
  return y(x);
}

F*
foo ()
{
  return get_funloc (make_mess, aux);
}