Sign in
gnu
/
gcc
/
1ba7adabf29eb671e418692fad076ea6edd08e3d
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
lambda-init9.C
blob: 795d036ca7566a58a70270348489b7035eef8654 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++14 } }
void
f
()
{
[&
x
=
1
]{};
// { dg-error "cannot capture|cannot bind non-const lvalue ref" }
}