☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr70338.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/pr70338.C
code
plain
raw
1
// PR c++/70338
2
// { dg-do compile { target c++11 } }
3
// { dg-options "-g" }
4
5
template<typename T>
6
void
7
foo (int x)
8
{
9
T a[x];
10
auto b = [&]() { for (auto &c: a) c = 0.; };
11
}
12
13
int
14
main ()
15
{
16
foo<double> (3);
17
}