Complicated dg test cases
Dan Kegel
dank@kegel.com
Mon Feb 9 11:55:00 GMT 2004
Segher Boessenkool wrote:
>> While preparing to try this, I noticed that the existing compat
>> patches seem to have an undefined exit status. This is bad, isn't it?
>> Unless I'm confused, we should add a 'return 0;' to the end of
>> g++.dg/compat/*/*_main.C ...
>
> 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).
Nor in C++, I gather.
Thanks for the language lesson. Nothing to see here, move along...
- Dan
--
US citizens: if you're considering voting for Bush, look at these first:
http://www.misleader.org/
http://www.cbc.ca/news/background/arar/
http://www.house.gov/reform/min/politicsandscience/
More information about the Gcc
mailing list