OSDN Git Service

PR c++/37256
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / variadic-unify.C
1 // { dg-options "-std=c++0x" }
2 template<typename...> struct tuple { };
3
4 template<typename... Args1, typename... Args2>
5 void foo(tuple<Args1..., Args2...>, tuple<Args1...>, tuple<Args2...>);
6
7 struct X{ };
8
9 void bar()
10 {
11   tuple<int, float> tif;
12   tuple<double, X> tdx;
13   tuple<int, float, double, X> tall;
14   foo(tall, tif, tdx);
15 }