summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/pr21964-3b.c
blob: 74b1d1eff041fe048c1c83de08c3d8d9c0173207 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
extern int __start___verbose[];
extern int __stop___verbose[];
int
foo2 (void)
{
  static int my_var[10] __attribute__((used, section("__verbose")))
    = { 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 };
  if (__start___verbose == __stop___verbose
      || __start___verbose[0] != 10)
    return -1;
  else
    return 0;
}