This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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; }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]