aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp1y/vla13.C
blob: 9b69452d1d66bcde6490393306a0471f3319b640 (plain)
1
2
3
4
5
6
7
8
// PR c++/60227
// { dg-do compile { target c++1y } }

void foo(int n)
{
  int a[n];
  int (&r)[n] = {};		// { dg-error "" }
}