8sa1-gcc/gcc/testsuite/g++.old-deja/g++.other/main2.C
Mark Mitchell f22967f31a decl.c (grokfndecl): Require that main' return an int'.
* decl.c (grokfndecl): Require that `main' return an `int'.
	* mangle.c (write_encoding): Don't mangle return types for
	conversion functions.

From-SVN: r35972
2000-08-25 07:28:36 +00:00

5 lines
123 B
C

// Build don't link:
// Origin: Mark Mitchell <mark@codesourcery.com>
double main () {} // ERROR - main must return `int'