OSDN Git Service

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