☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
lambda-init9.C
☽
☼
gcc/testsuite/g++.dg/cpp1y/lambda-init9.C
code
plain
raw
1
// { dg-do compile { target c++14 } }
2
3
void f()
4
{
5
[&x=1]{}; // { dg-error "cannot capture|cannot bind non-const lvalue ref" }
6
}