blob: 2e16c1d06d065aa071352376a1338488ab01d344 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/* Test STT_GNU_IFUNC symbol reference in a shared library. */
2
3extern int foo (void);
4
5typedef int (*foo_p) (void);
6
7foo_p foo_ptr = foo;
8
9foo_p
10get_foo_p (void)
11{
12 return foo_ptr;
13}
14
15foo_p
16get_foo (void)
17{
18 return foo;
19}