aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/static21-a.cc
blob: 9489ae7d0b84b89b76d713c2e88772579c062a15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
template<int dummy>
    struct X
    {
      static const int n_primes = 256;
      static const unsigned long primes[n_primes + 1];
    };

  template<int dummy>
  const int X<dummy>::n_primes;

  template<int dummy>
  const unsigned long X<dummy>::primes[n_primes + 1] =
    { 0 };


const unsigned long  *f1(void){return &X<0>::primes[0];}
int main(){}