blob: 523d923a46fcd346840f84e26d1c4942381211f0 [file] [log] [blame]
florian251c2f92012-07-05 21:21:37 +00001/* This test made valgrind run in an infinite loop. See bugzilla #301204 */
2#include <stdio.h>
3
4static void mytest(int d)
5{
6 printf("%d\n", d);
7}
8
9static void (*resolve_test(void))(void)
10{
11 return (void (*)(void))&mytest;
12}
13
14void test(int d)
15 __attribute__((ifunc("resolve_test")));
16
17int main()
18{
19 test(5);
20 return 0;
21}