1// BZ 12511
2#include "tst-unique4.h"
3
4template<int N>
5int S<N>::i = N;
6template<int N>
7const int S<N>::j __attribute__ ((used)) = -1;
8
9static int a[24] __attribute__ ((used)) =
10 {
11 S<1>::i, S<2>::i, S<3>::i, S<4>::i, S<5>::i, S<6>::i, S<7>::i, S<8>::i,
12 S<9>::i, S<10>::i, S<11>::i, S<12>::i, S<13>::i, S<14>::i, S<15>::i,
13 S<16>::i, S<17>::i, S<18>::i, S<19>::i, S<20>::i, S<21>::i, S<22>::i,
14 S<23>::i, S<24>::i
15 };
16
17static int b __attribute__ ((used)) = S<1>::j;
18

source code of glibc/elf/tst-unique4lib.cc