2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / torture / str_empty.C
blobe24f0b6ac9f73df4fdc7433666d4b8b0947472b2
1 // PR c++/31617
2 // Segfault in integer_zerop
3 // Origin: Andrew Pinski  <andrew_pinski@playstation.sony.com>
4 // { dg-do compile }
6 struct polynomial {
7   ~polynomial ();
8 };
10 void spline_rep1 ()
12   new polynomial[0];  // { dg-bogus "allocating zero-element array" }