1 // { dg-options "-std=gnu++0x" }
2 template<typename... Args>
4 static const int value = 0;
8 struct tuple_base<int> {
9 static const int value = 1;
13 struct tuple_base<int, float> {
14 static const int value = 2;
18 struct tuple_base<float, int> {
19 static const int value = 3;
22 template<typename... Args>
23 struct int_tuple : tuple_base<int, Args...> { };
25 template<typename... Args>
26 struct tuple_int : tuple_base<Args..., int> { };
28 int a0a[int_tuple<int>::value == 0? 1 : -1];
29 int a0b[int_tuple<int>::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<float>::value == 2? 1 : -1];
33 int a3[tuple_int<float>::value == 3? 1 : -1];