c++, coroutines: Simplify separation of the user function body and ramp.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / lambda-init9.C
blob795d036ca7566a58a70270348489b7035eef8654
1 // { dg-do compile { target c++14 } }
3 void f()
5   [&x=1]{};   // { dg-error "cannot capture|cannot bind non-const lvalue ref" }