4 extern void foo (void);
5 extern void check_ptr_eq (void (*) (void), void (*) (void));
12 __asm__(".symver new_foo, foo@@VERS_2.0");
13 #if defined __powerpc64__ && defined _CALL_AIXDESC && !defined _CALL_LINUX
14 __asm__(".symver .new_foo, .foo@@VERS_2.0");
17 #if defined(__GNUC__) && (__GNUC__ * 1000 + __GNUC_MINOR__) >= 4005
18 __attribute__ ((noinline
, noclone
))
20 __attribute__ ((noinline
))
25 return (intptr_t) &foo
== 0x12345678 ? 1 : 0;
32 check_ptr_eq (&foo
, &new_foo
);