Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/lambda-init9.C

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 }