Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/template/static21-a.cc @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
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(){}