2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / other / array3.C
blob3e6f7d1ad078ed885bbae4a72749142fa5a88d9b
1 // PR C++/28906: new on an array causes incomplete arrays to
2 // become complete with the wrong size.
4 // the bounds of xvalue_store was being set to include want
5 // which was incorrect.
7 // { dg-do compile }
9 extern unsigned char xvalue_store[];
10 bool reserve (int want)
12   new unsigned char[want];
13   return true;
15 unsigned char xvalue_store[257];