// Test that auto works with VLAs.
// { dg-do compile { target c++11 } }
// { dg-options "-Wno-vla" }
// { dg-require-effective-target alloca }
void bar(int n)
{
  float loc2[n];
  auto&& range = loc2;
}
// Test that auto works with VLAs.
// { dg-do compile { target c++11 } }
// { dg-options "-Wno-vla" }
// { dg-require-effective-target alloca }
void bar(int n)
{
  float loc2[n];
  auto&& range = loc2;
}