Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nsdmi1.C

raw
1 // PR c++/56464
2 // { dg-do run { target c++11 } }
3
4 struct bug { bug*a = [&]{ return [=]{return this;}(); }(); }; // { dg-warning "implicit capture" "" { target c++2a } }
5 int main()
6 {
7 bug b;
8 if (b.a != &b)
9 __builtin_abort ();
10 }