From: bernhardheld Date: Sun, 7 Oct 2001 14:29:06 +0000 (+0000) Subject: port to mcs51 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=bb731c9567c13802a76fbe3a9a81568b2e401717;hp=a8bbb10d9bb1feaaf9ce2d801fe921e6dca6400a;p=fw%2Fsdcc port to mcs51 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1367 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/support/regression/tests/bug-460010.c b/support/regression/tests/bug-460010.c index 18f867cf..abf31678 100644 --- a/support/regression/tests/bug-460010.c +++ b/support/regression/tests/bug-460010.c @@ -2,6 +2,12 @@ */ #include +#ifdef __mcs51 +#define XDATA xdata +#else +#define XDATA +#endif + void func( unsigned char a ) { @@ -11,7 +17,7 @@ func( unsigned char a ) void testBadPromotion(void) { - unsigned char c=*((unsigned char*)(0xa000)); + unsigned char c=*((unsigned XDATA char*)(0xa000)); func(c);