aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/vla22.C
blob: 2308ee748df0b2f4031793eec5728a952c41779d (plain)
1
2
3
4
5
6
7
8
9
// PR c++/93789 - ICE with invalid array bounds.
// { dg-do compile }
// { dg-options "" }

void
f ()
{
  const int tbl[(long) "h"] = { 12 }; // { dg-error "size of array .tbl. is not an integral constant-expression" }
}