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