Florian Krohm 1a6f7a0371 Add testcase from bugzilla #301204.
Testcase by Chantry Xavier (shiningxc@gmail.com).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12715
2012-07-05 21:21:37 +00:00

22 lines
335 B
C

/* This test made valgrind run in an infinite loop. See bugzilla #301204 */
#include <stdio.h>
static void mytest(int d)
{
printf("%d\n", d);
}
static void (*resolve_test(void))(void)
{
return (void (*)(void))&mytest;
}
void test(int d)
__attribute__((ifunc("resolve_test")));
int main()
{
test(5);
return 0;
}