ld: Update function prototypes for compilers defaulting to -std=gnu23
[binutils-gdb.git] / ld / testsuite / ld-elf / pr21964-1b.c
blob688bbeb68702b39794998a897454eafc0c34d639
1 extern int __start___verbose[];
2 extern int __stop___verbose[];
3 int
4 foo2 (void)
6 static int my_var __attribute__((used, section("__verbose"))) = 10;
7 if (& __start___verbose[0] == & __stop___verbose[0]
8 || __start___verbose[0] != 10)
9 return -1;
10 else
11 return 0;