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] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
template<int dummy>
2
    struct X
3
    {
4
      static const int n_primes = 256;
5
      static const unsigned long primes[n_primes + 1];
6
    };
7
 
8
  template<int dummy>
9
  const int X<dummy>::n_primes;
10
 
11
  template<int dummy>
12
  const unsigned long X<dummy>::primes[n_primes + 1] =
13
    { 0 };
14
 
15
 
16
const unsigned long  *f1(void){return &X<0>::primes[0];}
17
int main(){}

powered by: WebSVN 2.1.0

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