Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/pr70338.C

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 }