aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/vla11.C
blob: e733f481f3e32556bd55881c2f6280787b072eb0 (plain)
1
2
3
4
5
6
7
8
9
// Test that auto works with VLAs.
// { dg-do compile { target c++11 } }
// { dg-options "-Wno-vla" }

void bar(int n)
{
  float loc2[n];
  auto&& range = loc2;
}