This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: Complicated dg test cases


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


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