gcc/testsuite/g++.dg/cpp0x/variadic47.C
raw| 1 | // { dg-do compile { target c++11 } } |
| 2 | template<typename T> struct wrap { }; |
| 3 | |
| 4 | template<typename... Args> |
| 5 | int& f(const Args&...); |
| 6 | |
| 7 | template<typename... Args> |
| 8 | float& f(const wrap<Args>&...); |
| 9 | |
| 10 | int& g(int x, float y, double z) |
| 11 | { |
| 12 | return f(x, y, z); |
| 13 | } |
| 14 | |
| 15 | float& h(wrap<int> x, wrap<float> y, wrap<double> z) |
| 16 | { |
| 17 | return f(x, y, z); |
| 18 | } |