OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [static21-a.cc] - Rev 801

Go to most recent revision | Compare with Previous | Blame | View Log

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(){}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.