Re-add support for lbarx, lharx, stbcx. and sthcx. insns back to the E6500 cpu.
[binutils-gdb.git] / ld / testsuite / ld-x86-64 / plt-main4.c
blob992ba5fad651f1c91031d957972492e7a194f7d7
1 extern int foo(void);
2 typedef int (*func_p) (void);
3 extern func_p foo_ptr;
5 void
6 check_foo (void)
8 if (foo_ptr != foo)
9 __builtin_abort ();
10 if (foo_ptr() != 1)
11 __builtin_abort ();
12 if (foo() != 1)
13 __builtin_abort ();