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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [parse/] [constant6.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/19883
2
 
3
template struct A
4
{
5
  static const T i = 1;
6
  char a[int(i)];
7
};
8
 
9
template struct B {};
10
 
11
template struct C
12
{
13
  static const T i = 2;
14
  B a;
15
};
16
 
17
template< typename T, T N >
18
struct integral_c
19
{
20
  static const T value = N;
21
 
22
  typedef integral_c< T, static_cast((value + 1)) > next;
23
};

powered by: WebSVN 2.1.0

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