aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/plt-main1.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-x86-64/plt-main1.c')
-rw-r--r--ld/testsuite/ld-x86-64/plt-main1.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/plt-main1.c b/ld/testsuite/ld-x86-64/plt-main1.c
new file mode 100644
index 0000000..90bb966
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/plt-main1.c
@@ -0,0 +1,8 @@
+extern int bar(void);
+typedef int (*func_p) (void);
+
+func_p
+get_bar (void)
+{
+ return bar;
+}