1 /* This test made valgrind run in an infinite loop. See bugzilla #301204 */
2 #include <stdio.h>
3 
4 static void mytest(int d)
5 {
6     printf("%d\n", d);
7 }
8 
9 static void (*resolve_test(void))(void)
10 {
11     return (void (*)(void))&mytest;
12 }
13 
14 void test(int d)
15     __attribute__((ifunc("resolve_test")));
16 
17 int main()
18 {
19     test(5);
20     return 0;
21 }
22