This is the mail archive of the gcc-bugs@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]

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


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

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