Debian Codegraph @

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

raw
1 // PR c++/56901
2 // { dg-require-effective-target c++11 }
3
4 template <typename>
5 void foo_impl()
6 {
7 int data;
8 auto L = [&](){ return data; };
9 [&](){ L(); }();
10 [&L](){ L(); }();
11 }
12
13 void foo()
14 {
15 foo_impl<int>();
16 }