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