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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic11.C] - Blame information for rev 707

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-options "-std=gnu++0x" }
2
template struct count;
3
 
4
template<>
5
struct count<> {
6
  static const int value = 0;
7
};
8
 
9
template
10
struct count {
11
  static const int value = 1 + count::value;
12
};
13
 
14
int a0[count<>::value == 0? 1 : -1];
15
int a1[count::value == 1? 1 : -1];
16
int a2[count::value == 2? 1 : -1];
17
int a3[count::value == 3? 1 : -1];
18
int a4[count::value == 4? 1 : -1];

powered by: WebSVN 2.1.0

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