ld: Hide symbols defined by HIDDEN/PROVIDE_HIDDEN
[deliverable/binutils-gdb.git] / ld / testsuite / ld-elf / check-ptr-eq.c
CommitLineData
c45bd4fd
L
1extern void abort (void);
2
3/* Since GCC 5 folds symbol address comparison, assuming each symbol has
4 different address, &foo == &bar is always false for GCC 5. Use
37d7d56c 5 check_ptr_eq to check if two functions are the same. */
c45bd4fd
L
6
7void
37d7d56c 8check_ptr_eq (void (*f1) (void), void (*f2) (void))
c45bd4fd 9{
37d7d56c 10 if (f1 != f2)
c45bd4fd
L
11 abort ();
12}
This page took 0.144375 seconds and 4 git commands to generate.