FreeBSD: add file descriptor tracking for _umtx_op
[valgrind.git] / none / tests / ifunc.c
blob43a48d2a0660d3bff5412622a81b8a072f0b9ed7
1 /* This test made valgrind run in an infinite loop. See bugzilla #301204 */
2 #include <stdio.h>
4 static void mytest(int d)
6 printf("%d\n", d);
9 static void (*resolve_test(void))(int)
11 return mytest;
14 void test(int d)
15 __attribute__((ifunc("resolve_test")));
17 int main()
19 test(5);
20 return 0;