URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.dg/] [template/] [static21.C] - Rev 12
Compare with Previous | Blame | View Log
// PR c++/24389
// { dg-additional-sources "static21-a.cc" }
// { dg-do link }
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 *f(void){return &X<0>::primes[0];}