Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/torture/pr47281.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 | |
3 struct T; | |
4 typedef void F(void); | |
5 | |
6 F* aux(void (*x)()) | |
7 { | |
8 return x; | |
9 } | |
10 | |
11 void make_mess (int); | |
12 | |
13 F* | |
14 get_funloc (void (*x)(int), F* (*y)()) | |
15 { | |
16 return y(x); | |
17 } | |
18 | |
19 F* | |
20 foo () | |
21 { | |
22 return get_funloc (make_mess, aux); | |
23 } |