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 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/


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