Fix failure in x86_64 linker tests when compiling with a PIE enabled compiler.
[deliverable/binutils-gdb.git] / ld / testsuite / ld-x86-64 / plt-main4.c
CommitLineData
76e7af5f
L
1extern int foo(void);
2typedef int (*func_p) (void);
3extern func_p foo_ptr;
4
5void
6check_foo (void)
7{
8 if (foo_ptr != foo)
9 __builtin_abort ();
10 if (foo_ptr() != 1)
11 __builtin_abort ();
12 if (foo() != 1)
13 __builtin_abort ();
14}
This page took 0.120771 seconds and 4 git commands to generate.