This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[lto] Add test case for nothrow bug
- From: Diego Novillo <dnovillo at google dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 27 Nov 2008 09:33:36 -0500
- Subject: [lto] Add test case for nothrow bug
Simon was much faster than me in getting a reduced test case for
http://gcc.gnu.org/ml/gcc-patches/2008-11/msg01380.html (thanks!)
Tested on x86_64.
Diego.
2008-11-27 Simon Baldwin <simonb@google.com>
* g++.dg/lto/20081127_0.C: New.
* g++.dg/lto/20081127_1.C: New.
Index: g++.dg/lto/20081127_0.C
===================================================================
--- g++.dg/lto/20081127_0.C (revision 0)
+++ g++.dg/lto/20081127_0.C (revision 0)
@@ -0,0 +1,2 @@
+struct Foo { Foo(); };
+static void func() { new Foo(); }
Index: g++.dg/lto/20081127_1.C
===================================================================
--- g++.dg/lto/20081127_1.C (revision 0)
+++ g++.dg/lto/20081127_1.C (revision 0)
@@ -0,0 +1,3 @@
+struct Foo { Foo(); };
+Foo::Foo() { }
+main() { return 0; }