* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / variadic114.C
blob183cb2b5631128bbfd9c328db613f506cc4e6300
1 // PR c++/49785
2 // { dg-do compile { target c++11 } }
3 // { dg-additional-options "-Wno-return-type" }
5 template <typename, typename ...> struct B { };
6 template <typename> class A;
8 template <typename R, typename ... S>
9 struct A <R (S ...)> : public B <R, S ...>
11   struct C {};
12   template <typename D> A (D, C = C ()) { }
13   R operator () (...);
16 template <typename R, typename ... S, typename T>
17 auto operator >> (A <R (S ...)>, T)->A <R (S ...)>
19   []() {};
22 int
23 main ()
25   A <int (int, int)> a = [](int, int) {};
26   auto b = []{};
27   (a >> b) (3, 5);