This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix gcc.dg/bf-ms-attrib.c return
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 26 Feb 2008 23:19:35 +0000 (UTC)
- Subject: Fix gcc.dg/bf-ms-attrib.c return
The test gcc.dg/bf-ms-attrib.c fails because of falling off the end of
main (as a C90 test, not C99 or C++, there is no implicit return 0).
This patch fixes it with an explicit return 0. OK to commit?
2008-02-26 Joseph Myers <joseph@codesourcery.com>
* gcc.dg/bf-ms-attrib.c (main): Return 0.
Index: gcc.dg/bf-ms-attrib.c
===================================================================
--- gcc.dg/bf-ms-attrib.c (revision 132664)
+++ gcc.dg/bf-ms-attrib.c (working copy)
@@ -36,4 +36,5 @@
abort();
if (sizeof(struct one_gcc) != 8)
abort();
+ return 0;
}
--
Joseph S. Myers
joseph@codesourcery.com