1// PR c++/24389
2// { dg-additional-sources "static21-a.cc" }
3// { dg-do link }
4
5template<int dummy>
6struct X
7{
8  static const int n_primes = 256;
9  static const unsigned long primes[n_primes + 1];
10};
11
12template<int dummy>
13const int X<dummy>::n_primes;
14
15template<int dummy>
16const unsigned long X<dummy>::primes[n_primes + 1] =
17  { 0 };
18
19const unsigned long  *f(void){return &X<0>::primes[0];}
20
21