repo.or.cz
/
binutils-gdb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Automatic date update in version.in
[binutils-gdb.git]
/
ld
/
testsuite
/
ld-elf
/
pr29797.c
blob
9e3113fe98d3692e93b510281fd682890edd0cdc
1
#include <stdio.h>
2
3
static int
foo
(
int
x
)
__attribute__
((
ifunc
(
"resolve_foo"
)));
4
5
static int
foo_impl
(
int
x
)
6
{
7
return
x
;
8
}
9
10
static void
*
resolve_foo
(
void
)
11
{
12
return
(
void
*)
foo_impl
;
13
}
14
15
int
16
main
()
17
{
18
foo
(
0
);
19
puts
(
"PASS"
);
20
return
0
;
21
}