Automatic date update in version.in
[binutils-gdb.git] / ld / testsuite / ld-elf / check-ptr-eq.c
blobc1d5ef699452f43a4a808fdbb8dae5f864302899
1 extern void abort (void);
3 /* Since GCC 5 folds symbol address comparison, assuming each symbol has
4 different address, &foo == &bar is always false for GCC 5. Use
5 check_ptr_eq to check if two functions are the same. */
7 void
8 check_ptr_eq (void (*f1) (void), void (*f2) (void))
10 if (f1 != f2)
11 abort ();