This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[lto] Add test case
- From: "Diego Novillo" <dnovillo at google dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 12 Sep 2008 13:24:26 -0400
- Subject: [lto] Add test case
This test case was randomly failing but I can't reproduce it anymore.
Adding to testsuite.
Diego.
2008-09-12 Simon Baldwin <simonb@google.com>
* g++.dg/lto/20080912-1.C: New.
Index: testsuite/g++.dg/lto/20080912-1.C
===================================================================
--- testsuite/g++.dg/lto/20080912-1.C (revision 0)
+++ testsuite/g++.dg/lto/20080912-1.C (revision 0)
@@ -0,0 +1,3 @@
+// { dg-do assemble }
+struct Foo { double x[3]; };
+Foo func() { Foo f = { { 0, 0, 0 } }; return f; }