From: michaelh Date: Wed, 10 Oct 2001 04:09:56 +0000 (+0000) Subject: Added bug 469671 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=5f678b2bd01145dff19436e885144411ecadbd99;p=fw%2Fsdcc Added bug 469671 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1384 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index ffa6b95c..57841260 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2001-10-09 Michael Hope + * support/regression/tests/bug-469671.c: Added. + * src/z80/gen.c (shiftIntoPair): Fixed up warning. 2001-10-08 Michael Hope diff --git a/support/regression/tests/bug-469671.c b/support/regression/tests/bug-469671.c new file mode 100644 index 00000000..56cf1c75 --- /dev/null +++ b/support/regression/tests/bug-469671.c @@ -0,0 +1,19 @@ +/* bug 469671.c + + storage: static, + */ +#include + +void +testMul(void) +{ + {storage} volatile int a, b; + + a = 5; + b = a*2; + ASSERT(b == 10); + + a = -33; + b = a*2; + ASSERT(b == -66); +}