X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fregression%2Fadd3.c;h=a1990af0c18d2e7cbd7e05938dd16270e8a61c9d;hb=ef1400f583d53e5091fa901ad4ed933285b9dbb3;hp=e218dc15cd0556a681d9e9631314934f68aecfe7;hpb=090ce4761d96fdbf019e1ecb87b2c6bb8dbefb5a;p=fw%2Fsdcc diff --git a/src/regression/add3.c b/src/regression/add3.c index e218dc15..a1990af0 100644 --- a/src/regression/add3.c +++ b/src/regression/add3.c @@ -1,14 +1,13 @@ +#include "gpsim_assert.h" // Addition tests - mostly int's /* bit types are not ANSI - so provide a way of disabling bit types * if this file is used to test other compilers besides SDCC */ -#define SUPPORT_BIT_TYPES 1 +#define SUPPORT_BIT_TYPES 0 -unsigned char success=0; unsigned char failures=0; -unsigned char dummy=0; char char0 = 0; @@ -39,11 +38,11 @@ bit bit11 = 0; #endif -void done() +void +done() { - - dummy++; - + ASSERT(MANGLE(failures) == 0); + PASSED(); } void add_char2char(void) @@ -215,6 +214,5 @@ void main(void) add_lit2long(); add_lit2ulong(); - success = failures; done(); }