new file str_empty.C
authorOlga Golovanevsky <olga@gcc.gnu.org>
Tue, 24 Apr 2007 15:49:09 +0000 (15:49 +0000)
committerOlga Golovanevsky <olga@gcc.gnu.org>
Tue, 24 Apr 2007 15:49:09 +0000 (15:49 +0000)
From-SVN: r124108

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];
+}
+
+