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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic8.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 tuple_base {
4
  static const int value = 0;
5
};
6
 
7
template<>
8
struct tuple_base
9
{
10
  static const int value = 1;
11
};
12
 
13
template
14
struct tuple_base
15
{
16
  static const int value = 2;
17
};
18
 
19
template
20
struct tuple_of_pointers : tuple_base { };
21
 
22
int a1[tuple_of_pointers::value == 1? 1 : -1];
23
int a2[tuple_of_pointers::value == 2? 1 : -1];

powered by: WebSVN 2.1.0

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