summaryrefslogtreecommitdiffstats
path: root/ld/testsuite/ld-elfweak/bar1a.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-elfweak/bar1a.c')
-rw-r--r--ld/testsuite/ld-elfweak/bar1a.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elfweak/bar1a.c b/ld/testsuite/ld-elfweak/bar1a.c
new file mode 100644
index 0000000000..7ca1f04132
--- /dev/null
+++ b/ld/testsuite/ld-elfweak/bar1a.c
@@ -0,0 +1,9 @@
+#pragma weak deallocate_foo
+
+int deallocate_foo = 1;
+
+int *
+bar()
+{
+ return &deallocate_foo;
+}
OpenPOWER on IntegriCloud