* support/regression/tests/bug1816470.c: new, added
authorMaartenBrock <MaartenBrock@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 25 Oct 2007 21:05:06 +0000 (21:05 +0000)
committerMaartenBrock <MaartenBrock@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 25 Oct 2007 21:05:06 +0000 (21:05 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4940 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
support/regression/tests/bug1816470.c [new file with mode: 0644]

index 441a67c6a8ffff85b956b52cf4a896cacd634e68..11b0b2bffb5de8ec131fd72996ed4264ac58ec6f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
+
+       * support/regression/tests/bug1816470.c: new, added
+
 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
 
        * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
diff --git a/support/regression/tests/bug1816470.c b/support/regression/tests/bug1816470.c
new file mode 100644 (file)
index 0000000..25c644a
--- /dev/null
@@ -0,0 +1,16 @@
+/*
+    bug 1816470
+*/
+
+#include <testfwk.h>
+
+int CalculatedConst(void)
+{
+       return (unsigned char)(0x100 - 4000000 / 307200.0 + .5);
+}
+
+void
+testConst(void)
+{
+       ASSERT(CalculatedConst() == 0xF3);
+}