aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elfweak/foo.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-elfweak/foo.c')
-rw-r--r--ld/testsuite/ld-elfweak/foo.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elfweak/foo.c b/ld/testsuite/ld-elfweak/foo.c
new file mode 100644
index 0000000..d00b1b5
--- /dev/null
+++ b/ld/testsuite/ld-elfweak/foo.c
@@ -0,0 +1,8 @@
+#pragma weak foo
+
+extern void foo ();
+
+void
+foo ()
+{
+}