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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic7.C] - Blame information for rev 478

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

Line No. Rev Author Line
1 301 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
  static const int value = 1;
10
};
11
 
12
template<>
13
struct tuple_base {
14
  static const int value = 2;
15
};
16
 
17
template<>
18
struct tuple_base {
19
  static const int value = 3;
20
};
21
 
22
template
23
struct int_tuple : tuple_base { };
24
 
25
template
26
struct tuple_int : tuple_base { };
27
 
28
int a0a[int_tuple::value == 0? 1 : -1];
29
int a0b[int_tuple::value == 0? 1 : -1];
30
int a1a[int_tuple<>::value == 1? 1 : -1];
31
int a1b[tuple_int<>::value == 1? 1 : -1];
32
int a2[int_tuple::value == 2? 1 : -1];
33
int a3[tuple_int::value == 3? 1 : -1];

powered by: WebSVN 2.1.0

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