]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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 081dbf757bd02590210c99cbf697b0dd5ec42a48..80ed431e7a71d8b06cf62d3a7f6c08041858de0b 100644 (file)
@@ -1,3 +1,8 @@
+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
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(); }