From: michaelh Date: Sat, 21 Jul 2001 05:35:35 +0000 (+0000) Subject: Fixed them to compile X-Git-Url: https://git.gag.com/?a=commitdiff_plain;ds=sidebyside;h=6e53662159f26dc290834c15c2cdf741bbca8a5e;p=fw%2Fsdcc Fixed them to compile git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1091 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/support/regression/tests/bug-223113.c b/support/regression/tests/bug-223113.c index de4e1e50..82a338c6 100644 --- a/support/regression/tests/bug-223113.c +++ b/support/regression/tests/bug-223113.c @@ -1,3 +1,5 @@ +#include + /* *------------------------------------------------- */ @@ -22,7 +24,7 @@ /* * *-------------------------------------------------- * */ - void main( void ) + void __main( void ) { puts( "hello world\n" ); } diff --git a/support/regression/tests/bug-408972.c b/support/regression/tests/bug-408972.c index 98f47e15..ab8ded70 100644 --- a/support/regression/tests/bug-408972.c +++ b/support/regression/tests/bug-408972.c @@ -1,3 +1,7 @@ +/* Fake header. + */ +#include + long leftShiftLong (long l) { /* PENDING: Disabled. return (l << 3); diff --git a/support/regression/tests/bug-426632.c b/support/regression/tests/bug-426632.c index ae5a3a45..8d29050f 100644 --- a/support/regression/tests/bug-426632.c +++ b/support/regression/tests/bug-426632.c @@ -1,3 +1,5 @@ +#include + typedef struct { unsigned char year; /* Current * year (with offset 1900) */ @@ -11,7 +13,7 @@ unsigned char year; unsigned char month; unsigned char day; -void *main() +void *__main() { float i; float y;