re PR lto/43788 (ICE: verify_stmts failed: statement marked for throw, but doesn't)
authorRichard Guenther <rguenther@suse.de>
Sat, 24 Jul 2010 16:58:19 +0000 (16:58 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sat, 24 Jul 2010 16:58:19 +0000 (16:58 +0000)
2010-07-24  Richard Guenther  <rguenther@suse.de>

PR lto/43788
* g++.dg/lto/20100724-1_0.C: New testcase.

From-SVN: r162502

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/20100724-1_0.C [new file with mode: 0644]

index 081dbf7..80ed431 100644 (file)
@@ -1,5 +1,10 @@
 2010-07-24  Richard Guenther  <rguenther@suse.de>
 
+       PR lto/43788
+       * g++.dg/lto/20100724-1_0.C: New testcase.
+
+2010-07-24  Richard Guenther  <rguenther@suse.de>
+
        PR lto/43212
        * gcc.dg/lto/20100724-1_0.c: New testcase.
        * gcc.dg/lto/20100724-1_1.c: Likewise.
diff --git a/gcc/testsuite/g++.dg/lto/20100724-1_0.C b/gcc/testsuite/g++.dg/lto/20100724-1_0.C
new file mode 100644 (file)
index 0000000..f652619
--- /dev/null
@@ -0,0 +1,7 @@
+/* { dg-lto-do link } */
+/* { dg-lto-options {{-ftoplevel-reorder -flto} {-ftoplevel-reorder -fwhopr}} } */
+/* { dg-extra-ld-options {-r -nostdlib} } */
+
+struct Foo { virtual ~Foo(); };
+struct Bar:public Foo { Bar() { } };
+void Func() { new Bar(); }