Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/vla6.C

raw
1 // PR c++/57404
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-g" }
4
5 void f (int i)
6 {
7 int a[i];
8 [&a] {};
9 }
10
11 void g (int i)
12 {
13 int a[i];
14 [&a] {} ();
15 }