new file str_empty.C
authorolga <olga@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Apr 2007 15:49:09 +0000 (15:49 +0000)
committerolga <olga@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Apr 2007 15:49:09 +0000 (15:49 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124108 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/g++.dg/other/str_empty.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/other/str_empty.C b/gcc/testsuite/g++.dg/other/str_empty.C
new file mode 100644 (file)
index 0000000..ba9f89d
--- /dev/null
@@ -0,0 +1,16 @@
+// PR c++/31617
+// Segfault in integer_rezop
+// Origin: Andrew Pinski  <andrew_pinski@playstation.sony.com>
+// { dg-do compile }
+// { dg-options "-O2" }
+
+struct polynomial {
+  ~polynomial ();
+};
+
+void spline_rep1 ()
+{
+  new polynomial[0];
+}
+
+