about summary refs log tree commit diff
path: root/REORG.TODO/elf/tst-unique1mod1.c
diff options
context:
space:
mode:
Diffstat (limited to 'REORG.TODO/elf/tst-unique1mod1.c')
-rw-r--r--REORG.TODO/elf/tst-unique1mod1.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/REORG.TODO/elf/tst-unique1mod1.c b/REORG.TODO/elf/tst-unique1mod1.c
new file mode 100644
index 0000000000..84b1f908d6
--- /dev/null
+++ b/REORG.TODO/elf/tst-unique1mod1.c
@@ -0,0 +1,16 @@
+#include <config.h>
+
+asm (".data;"
+     ".globl var\n"
+     ".type var, %gnu_unique_object\n"
+     ".size var, 4\n"
+     "var:.zero 4\n"
+     ".previous");
+extern int var;
+
+int *
+f (void)
+{
+  var = 1;
+  return &var;
+}