Complicated dg test cases
Zack Weinberg
zack@codesourcery.com
Mon Feb 9 17:00:00 GMT 2004
Segher Boessenkool <segher@kernel.crashing.org> writes:
>> I haven't seen these fail because of the missing return, but maybe
>> that's just luck.
>
> C99, 5.1.2.2.3/1:
>
> "... reaching the } that terminates the main function returns
> a value of 0."
>
> so it's not necessary to explicitly return 0 (at least, in C99).
I think that's not something to be relied on in a compatibility suite.
zw
More information about the Gcc
mailing list