summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/array24.C
blob: ed4c1d881fe3f6305c6f3f22daf19700a1dca704 (plain)
1
2
3
4
5
6
7
// PR c++/29175
// { dg-options "" }

void foo(int i)
{
  int x[][i] = { 0 }; // { dg-error "variable-sized|storage size" }
}