Debian Codegraph @

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

raw
1 // PR c++/93789 - ICE with invalid array bounds.
2 // { dg-do compile }
3 // { dg-options "" }
4
5 void
6 f ()
7 {
8 const int tbl[(long) "h"] = { 12 }; // { dg-error "size of array .tbl. is not an integral constant-expression" }
9 }