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