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

powered by: WebSVN 2.1.0

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