c++, coroutines: Simplify separation of the user function body and ramp.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / lambda-init15a.C
blob166d650d4f7998e7e8d3ea2830d29b053e406538
1 // PR c++/71837
2 // { dg-do compile { target c++14 } }
4 template < typename ... Ts > void f (Ts ... args)
6   [ts (args ...)] { return ts; } (); // { dg-error "" }
9 int main ()
10
11   f ();                         // { dg-message "required" }
12   f (1,2);                      // { dg-message "required" }
13   return 0;