git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3254
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
+
+ * support/regression/tests/bug-908454.c: added
+
2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
* src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
--- /dev/null
+/* promoting bit to char */
+
+#include <testfwk.h>
+
+#if defined(PORT_HOST)
+volatile int a = 1, b = 1;
+#else
+volatile bit a = 1, b = 1;
+#endif
+
+char
+foo (void)
+{
+ return (a << 1) | b;
+}
+
+static void
+testBitToCharPromotion(void)
+{
+ ASSERT(foo() == 3);
+}