From: Olga Golovanevsky Date: Tue, 24 Apr 2007 15:49:09 +0000 (+0000) Subject: new file str_empty.C X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9905fb5e5fede0e4d865b3ba42b9ecb35e40c0c4;p=gcc.git new file str_empty.C From-SVN: r124108 --- diff --git a/gcc/testsuite/g++.dg/other/str_empty.C b/gcc/testsuite/g++.dg/other/str_empty.C new file mode 100644 index 00000000000..ba9f89deb5a --- /dev/null +++ b/gcc/testsuite/g++.dg/other/str_empty.C @@ -0,0 +1,16 @@ +// PR c++/31617 +// Segfault in integer_rezop +// Origin: Andrew Pinski +// { dg-do compile } +// { dg-options "-O2" } + +struct polynomial { + ~polynomial (); +}; + +void spline_rep1 () +{ + new polynomial[0]; +} + +