aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/pr21964-1b.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-elf/pr21964-1b.c')
-rw-r--r--ld/testsuite/ld-elf/pr21964-1b.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/pr21964-1b.c b/ld/testsuite/ld-elf/pr21964-1b.c
new file mode 100644
index 0000000..1507b22
--- /dev/null
+++ b/ld/testsuite/ld-elf/pr21964-1b.c
@@ -0,0 +1,12 @@
+extern int __start___verbose[];
+extern int __stop___verbose[];
+int
+foo2 (void)
+{
+ static int my_var __attribute__((used, section("__verbose"))) = 10;
+ if (__start___verbose == __stop___verbose
+ || __start___verbose[0] != 10)
+ return -1;
+ else
+ return 0;
+}