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