aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp1y/vla6.C
blob: ca527a84c7b12f94693b7d20112b1f3fe788a823 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/57404
// { dg-do compile { target c++11 } }
// { dg-options "-g" }

void f (int i)
{
  int a[i];
  [&a] {};
}

void g (int i)
{
  int a[i];
  [&a] {} ();
}