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