repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
FreeBSD: add file descriptor tracking for _umtx_op
[valgrind.git]
/
none
/
tests
/
ifunc.c
blob
43a48d2a0660d3bff5412622a81b8a072f0b9ed7
1
/* This test made valgrind run in an infinite loop. See bugzilla #301204 */
2
#include <stdio.h>
3
4
static void
mytest
(
int
d
)
5
{
6
printf
(
"%d
\n
"
,
d
);
7
}
8
9
static void
(*
resolve_test
(
void
))(
int
)
10
{
11
return
mytest
;
12
}
13
14
void
test
(
int
d
)
15
__attribute__
((
ifunc
(
"resolve_test"
)));
16
17
int
main
()
18
{
19
test
(
5
);
20
return
0
;
21
}