mirror of
https://github.com/ioacademy-jikim/debugging
synced 2025-07-11 16:38:58 +00:00
22 lines
335 B
C
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;
|
|
}
|