gcc/testsuite/g++.dg/cpp0x/variadic-unify.C
raw| 1 | // { dg-do compile { target c++11 } } |
| 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 | } |