Added bug 469671
authormichaelh <michaelh@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Wed, 10 Oct 2001 04:09:56 +0000 (04:09 +0000)
committermichaelh <michaelh@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Wed, 10 Oct 2001 04:09:56 +0000 (04:09 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1384 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
support/regression/tests/bug-469671.c [new file with mode: 0644]

index ffa6b95ca68b75cb1f410d14a53f4589b4bf500e..57841260de581df349f101bed4170a3be8fc3fa8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2001-10-09  Michael Hope  <michaelh@juju.net.nz>
 
+       * support/regression/tests/bug-469671.c: Added.
+
        * src/z80/gen.c (shiftIntoPair): Fixed up warning.
 
 2001-10-08  Michael Hope  <michaelh@juju.net.nz>
diff --git a/support/regression/tests/bug-469671.c b/support/regression/tests/bug-469671.c
new file mode 100644 (file)
index 0000000..56cf1c7
--- /dev/null
@@ -0,0 +1,19 @@
+/* bug 469671.c
+
+   storage: static, 
+ */
+#include <testfwk.h>
+
+void
+testMul(void)
+{
+  {storage} volatile int a, b;
+
+  a = 5;
+  b = a*2;
+  ASSERT(b == 10);
+
+  a = -33;
+  b = a*2;
+  ASSERT(b == -66);
+}