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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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