From 25c9f7de4c47ca115bbf87990a8e95cf7ce4b828 Mon Sep 17 00:00:00 2001 From: MaartenBrock Date: Tue, 25 Apr 2006 22:36:08 +0000 Subject: [PATCH] * support/regression/tests/bug-460010.c, * support/regression/tests/bug-524691.c, * support/regression/tests/bug-716242.c: removed conditional defines that are already in testfwk.h git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4129 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 7 +++++++ support/regression/tests/bug-460010.c | 8 +------- support/regression/tests/bug-524691.c | 10 ++-------- support/regression/tests/bug-716242.c | 4 ---- 4 files changed, 10 insertions(+), 19 deletions(-) diff --git a/ChangeLog b/ChangeLog index 909da1aa..5c3691d9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-04-26 Maarten Brock + + * support/regression/tests/bug-460010.c, + * support/regression/tests/bug-524691.c, + * support/regression/tests/bug-716242.c: removed conditional defines + that are already in testfwk.h + 2006-04-25 Maarten Brock * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1, diff --git a/support/regression/tests/bug-460010.c b/support/regression/tests/bug-460010.c index 60020552..2b9bed54 100644 --- a/support/regression/tests/bug-460010.c +++ b/support/regression/tests/bug-460010.c @@ -2,12 +2,6 @@ */ #include -#if defined __mcs51 || defined __ds390 || defined __xa51 -#define XDATA xdata -#else -#define XDATA -#endif - void func( unsigned char a ) { @@ -19,7 +13,7 @@ testBadPromotion(void) { #ifdef SDCC - unsigned char c=*((unsigned XDATA char*)(0xa000)); + unsigned char c=*((unsigned xdata char*)(0xa000)); #else unsigned char loc_c; unsigned char c=*(unsigned char*)&loc_c; diff --git a/support/regression/tests/bug-524691.c b/support/regression/tests/bug-524691.c index 8b0a3db7..dfc2f0db 100644 --- a/support/regression/tests/bug-524691.c +++ b/support/regression/tests/bug-524691.c @@ -2,12 +2,6 @@ */ #include -#if defined __mcs51 || defined __ds390 || defined __xa51 -#define XDATA xdata -#else -#define XDATA -#endif - typedef unsigned int UINT; typedef struct _HeapEntryState @@ -49,9 +43,9 @@ void testDivByZero(void) { HeapEntryState aStates[] = { - { (void XDATA *)1, 0 } + { (void xdata *)1, 0 } }; - void *p = (void XDATA *)0x1234; + void *p = (void xdata *)0x1234; ASSERT(_getHeapEntryState(p, aStates, 1) == NULL); diff --git a/support/regression/tests/bug-716242.c b/support/regression/tests/bug-716242.c index 6e59499c..604bc22b 100644 --- a/support/regression/tests/bug-716242.c +++ b/support/regression/tests/bug-716242.c @@ -4,10 +4,6 @@ */ #include -#if defined(PORT_HOST) || defined(SDCC_z80) || defined(SDCC_gbz80) || defined(SDCC_hc08) -# define code -#endif - void *p; int ret; -- 2.30.2