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

Subversion Repositories openrisc

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

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
3
struct tuple {
4
  static const int value = 0;
5
};
6
 
7
template<>
8
struct tuple<> {
9
  static const int value = 1;
10
};
11
 
12
template<>
13
struct tuple {
14
  static const int value = 2;
15
};
16
 
17
 
18
template<>
19
struct tuple {
20
  static const int value = 3;
21
};
22
 
23
template
24
struct tuple {
25
  static const int value = 4;
26
};
27
 
28
template<>
29
struct tuple {
30
  static const int value = 5;
31
};
32
 
33
int a0[tuple::value == 0? 1 : -1];
34
int a1[tuple<>::value == 1? 1 : -1];
35
int a2[tuple::value == 2? 1 : -1];
36
int a3[tuple::value == 3? 1 : -1];
37
int a4[tuple::value == 4? 1 : -1];
38
int a5[tuple::value == 5? 1 : -1];

powered by: WebSVN 2.1.0

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