☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-auto2.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-auto2.C
code
plain
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
}