Fix search in TUI
[deliverable/binutils-gdb.git] / ld / testsuite / ld-elf / check-ptr-eq.c
index 874431fbc1e4eeed7d6796ab0ae745a704b500b7..c1d5ef699452f43a4a808fdbb8dae5f864302899 100644 (file)
@@ -2,11 +2,11 @@ extern void abort (void);
 
 /* Since GCC 5 folds symbol address comparison, assuming each symbol has
    different address,  &foo == &bar is always false for GCC 5.  Use
-   check_ptr_eq to check if 2 addresses are the same.  */
+   check_ptr_eq to check if two functions are the same.  */
 
 void 
-check_ptr_eq (void *p1, void *p2)
+check_ptr_eq (void (*f1) (void), void (*f2) (void))
 {
-  if (p1 != p2)
+  if (f1 != f2)
     abort ();
 }
This page took 0.024017 seconds and 4 git commands to generate.