OSDN Git Service

PR c++/43856
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / variadic47.C
1 // { dg-options "-std=gnu++0x" }
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 }