diff options
Diffstat (limited to 'ld/testsuite/ld-x86-64/plt-main4.c')
-rw-r--r-- | ld/testsuite/ld-x86-64/plt-main4.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/plt-main4.c b/ld/testsuite/ld-x86-64/plt-main4.c new file mode 100644 index 0000000..992ba5f --- /dev/null +++ b/ld/testsuite/ld-x86-64/plt-main4.c @@ -0,0 +1,14 @@ +extern int foo(void); +typedef int (*func_p) (void); +extern func_p foo_ptr; + +void +check_foo (void) +{ + if (foo_ptr != foo) + __builtin_abort (); + if (foo_ptr() != 1) + __builtin_abort (); + if (foo() != 1) + __builtin_abort (); +} |