blob: e24f0b6ac9f73df4fdc7433666d4b8b0947472b2 [file] [log] [blame]
// PR c++/31617
// Segfault in integer_zerop
// Origin: Andrew Pinski <andrew_pinski@playstation.sony.com>
// { dg-do compile }
struct polynomial {
~polynomial ();
};
void spline_rep1 ()
{
new polynomial[0]; // { dg-bogus "allocating zero-element array" }
}