Debian Codegraph @

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

raw
1 // PR c++/57526
2 // { dg-require-effective-target c++11 }
3
4 template<class T>
5 struct A
6 {
7 void bar( ) { }
8
9 void foo( )
10 {
11 auto* this_ptr = this;
12 auto lc = [&]( )
13 {
14 this_ptr->bar();
15 };
16 lc();
17 }
18 };
19
20 int main()
21 {
22 A<int> a;
23 a.foo();
24 }