OSDN Git Service

* pt.c (unify) [TEMPLATE_TYPE_PARM]: Allow VLA for C++0x 'auto'.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / ext / vla11.C
1 // Test that auto works with VLAs.
2 // { dg-options -std=c++0x }
3
4 void bar(int n)
5 {
6   float loc2[n];
7   auto&& range = loc2;
8 }