Fortran: checking of pointer targets for structure constructors [PR56423]
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / lambda / lambda-this2.C
blob56d6b0c8ab99d462734a01f33adb394b27179184
1 // PR c++/43856
2 // Test for implicit 'this' capture via rewriting.
3 // { dg-do compile { target c++11 } }
5 struct S1 {
6   int operator()(int);
7   int i;
8   void g();
9   void f() {
10     [=]() { // { dg-warning "implicit capture" "" { target c++2a } }
11       i;
12       g();
13       S1::g();
14       operator()(42);
15     };
16   }