Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/lambda/lambda-const-this.C

raw
1 // PR c++/60463
2 // PR c++/60755
3 // { dg-do compile { target c++11 } }
4 struct S {
5 void f();
6 void g() const {
7 [=] { f(); } (); // { dg-error "no match|qualifiers" }
8 // { dg-warning "implicit capture" "" { target c++2a } .-1 }
9 }
10 };