OSDN Git Service

PR c++/44157
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / variadic19.C
1 // { dg-options "-std=gnu++0x" }
2 template<typename... Args>
3 struct tuple {
4   static const int value = 0;
5 };
6
7 template<typename T, template<class T> class... Metafunctions>
8 struct tuple<Metafunctions<T>...> {
9   static const int value = 1;
10 };
11
12 template<typename T> struct add_pointer;
13 template<typename T> struct add_reference;
14
15 int a0[tuple<int, float>::value == 0? 1 : -1];
16 int a1[tuple<add_pointer<int>, add_pointer<float> >::value == 0? 1 : -1];
17 int a2[tuple<>::value == 0? 1 : -1];
18 int a3[tuple<add_pointer<int> >::value == 1? 1 : -1];
19 int a4[tuple<add_pointer<int>, add_reference<int> >::value == 1? 1 : -1];