Debian Codegraph @

gcc/testsuite/g++.dg/ext/vla11.C

raw
1 // Test that auto works with VLAs.
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wno-vla" }
4
5 void bar(int n)
6 {
7 float loc2[n];
8 auto&& range = loc2;
9 }