aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/indirect4c.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-elf/indirect4c.c')
-rw-r--r--ld/testsuite/ld-elf/indirect4c.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/indirect4c.c b/ld/testsuite/ld-elf/indirect4c.c
new file mode 100644
index 0000000..b52cb95
--- /dev/null
+++ b/ld/testsuite/ld-elf/indirect4c.c
@@ -0,0 +1,15 @@
+#include <stdio.h>
+
+extern void foo (void);
+
+void
+foo (void)
+{
+ printf ("DSO\n");
+}
+
+void
+bar (void)
+{
+ foo ();
+}