Projet_SETI_RISC-V/riscv-gnu-toolchain/gdb/ld/testsuite/ld-elf/pr21964-1b.c

13 lines
280 B
C
Raw Normal View History

2023-03-06 14:48:14 +01:00
extern int __start___verbose[];
extern int __stop___verbose[];
int
foo2 (void)
{
static int my_var __attribute__((used, section("__verbose"))) = 10;
if (& __start___verbose[0] == & __stop___verbose[0]
|| __start___verbose[0] != 10)
return -1;
else
return 0;
}