1 /* Test STT_GNU_IFUNC symbols:
3 1. Direct function call.
5 3. Visibility without override.
14 int ret_foo_protected
;
16 extern int foo (void);
17 extern int foo_protected (void);
20 typedef int (*foo_p
) (void);
24 foo_p foo_procted_ptr
= foo_protected
;
26 extern foo_p
get_foo_p (void);
27 extern foo_p
get_foo_hidden_p (void);
28 extern foo_p
get_foo_protected_p (void);
39 if ((*foo_ptr
) () != -1)
42 if (foo_procted_ptr
!= foo_protected
)
44 if (foo_protected () != 0)
46 if ((*foo_procted_ptr
) () != 0)
52 if (ret_foo
!= -1 || (*p
) () != ret_foo
)
55 p
= get_foo_hidden_p ();
56 if (ret_foo_hidden
!= 1 || (*p
) () != ret_foo_hidden
)
59 p
= get_foo_protected_p ();
60 if (p
!= foo_protected
)
62 if (ret_foo_protected
!= 0 || (*p
) () != ret_foo_protected
)