Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/ext/vla22.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
145:1830386684a0 | 152:2b5abeee2509 |
---|---|
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 } |