* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / variadic-ex6.C
blob185a96346a793b47af8aee46f06976a634adf8dd
1 // { dg-do compile { target c++11 } }
2 template<class...> struct Tuple { };
4 template<class... Types> void f(Types&...);
5 template<class... Types1, class... Types2> void g(Tuple<Types1...>, Tuple<Types2...>);
7 void h(int x, float& y) 
9   const int z = x;
10   f(x, y, z); // Types is deduced to int, const int, float
11   g(Tuple<short, int, long>(), Tuple<float, double>()); // Types1 is deduced to short, int long
12                                                         // Types2 is deduced to float, double