This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc.dg/20000614-1.c exit code?
- To: DJ Delorie <dj at redhat dot com>
- Subject: Re: gcc.dg/20000614-1.c exit code?
- From: Michael Meissner <meissner at cygnus dot com>
- Date: Fri, 3 Nov 2000 23:52:01 -0500
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <200011040225.VAA19556@greed.delorie.com>
On Fri, Nov 03, 2000 at 09:25:10PM -0500, DJ Delorie wrote:
>
> In this test case, main looks like this:
>
> int main (void)
> {
> foo (23, 1);
> }
>
> It happens that the exit code is nonzero when the program runs
> properly. Is this correct? Should there be a "return 0;" in main?
Yes there should be a return 0. Consider this preapproval to check in a
patch.
--
Michael Meissner, Red Hat, Inc.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work: meissner@redhat.com phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org fax: +1 978-692-4482