mirror of
https://github.com/autc04/Retro68.git
synced 2024-09-10 03:54:48 +00:00
23 lines
287 B
C
23 lines
287 B
C
/* Test STT_GNU_IFUNC symbol reference in a shared library. */
|
|
|
|
extern int foo (void);
|
|
|
|
typedef int (*foo_p) (void);
|
|
|
|
extern foo_p get_foo_p (void);
|
|
extern foo_p get_foo (void);
|
|
|
|
foo_p foo_ptr = foo;
|
|
|
|
foo_p
|
|
get_foo_p (void)
|
|
{
|
|
return foo_ptr;
|
|
}
|
|
|
|
foo_p
|
|
get_foo (void)
|
|
{
|
|
return foo;
|
|
}
|