summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/pr21964-2a.c
blob: 8b1afca2acc71585d3eccf8cad188aa7ef953079 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;
}