1// PR c++/31617 2// Segfault in integer_zerop 3// Origin: Andrew Pinski <andrew_pinski@playstation.sony.com> 4// { dg-do compile } 5 6struct polynomial { 7 ~polynomial (); 8}; 9 10void spline_rep1 () 11{ 12 new polynomial[0]; // { dg-bogus "allocating zero-element array" } 13} 14 15 16