1 // { dg-do compile { target c++11 } }
2 template<typename T1, typename T2>
5 template<typename... Args>
7 static const int value = 0;
11 struct tuple<pair<int, float> > {
12 static const int value = 1;
16 struct tuple<pair<int, U> > {
17 static const int value = 2;
20 template<typename T, typename U>
21 struct tuple<pair<T, U>, pair<T, U> > {
22 static const int value = 3;
26 template<typename... Outer>
28 template<typename... Inner>
31 typedef tuple<pair<Outer, Inner>...> type;
35 int a0[X<int, double>::Y<short, char>::type::value == 0? 1 : -1];
36 int a1[X<int>::Y<float>::type::value == 1? 1 : -1];
37 int a2[X<int>::Y<double>::type::value == 2? 1 : -1];
38 int a3[X<int, int>::Y<double, double>::type::value == 3? 1 : -1];