mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
95e96e052a
PR 21964 * testsuite/ld-elf/pr21964-1a.c: Fix array comparisons. * testsuite/ld-elf/pr21964-1b.c: Likewise. * testsuite/ld-elf/pr21964-1c.c: Likewise. * testsuite/ld-elf/pr21964-2a.c: Likewise. * testsuite/ld-elf/pr21964-2b.c: Likewise. * testsuite/ld-elf/pr21964-3a.c: Likewise.
13 lines
278 B
C
13 lines
278 B
C
extern int __start___verbose[];
|
|
extern int __stop___verbose[];
|
|
int
|
|
foo1 (void)
|
|
{
|
|
static int my_var __attribute__((used, section("__verbose"))) = 5;
|
|
if (& __start___verbose[0] == & __stop___verbose[0]
|
|
&& __start___verbose[0] != 5)
|
|
return -1;
|
|
else
|
|
return 0;
|
|
}
|