* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / pr82878.C
blobc75e93b56c301f32192758d349912254d6f46aca
1 // { dg-do compile { target c++11 } }
2 // { dg-additional-options "-O" }
3 // pr 82878 erroneously unwrapped a reference parm in the lambda::_FUN
4 // thunk.
6 struct A {
7   ~A();
8   operator int ();
9 };
11 void baz ();
13 void
14 bar (A b)
16   void (*lam) (A) = [](A) { baz (); };
18   if (auto c = b)
19     lam (c);