gcc.dg/20000614-1.c exit code?

Michael Meissner meissner@cygnus.com
Fri Nov 3 20:52:00 GMT 2000


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


More information about the Gcc-bugs mailing list