blob: ce3641e8ccd26b07e368434945cc045f336e4626 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// PR C++/28906: new on an array causes incomplete arrays to
// become complete with the wrong size.
// the bounds of xvalue_store was being set to include want
// which was incorrect.
// { dg-do compile }
extern unsigned char xvalue_store[];
bool reserve (int want)
{
new unsigned char[want];
}
unsigned char xvalue_store[257];
|