* as/hc08/asmain.c, as/mcs51/asmain.c:
[fw/sdcc] / support / regression / tests / bitwise.c
index 2a2851aad210dd2314337ab5f3ddc4b1b90d44a2..7982be71f3c23ff79e40fcc19ca81419cf3bfff5 100644 (file)
@@ -36,3 +36,13 @@ testTwoOpBitwise(void)
     ASSERT(({type})(~left) == ({type})0xFFFFC208);
 #endif
 }
+
+static void
+testBug_1777758(void)
+{
+  char ep = -1;
+
+  ep &= ~0x80;
+
+  ASSERT(ep == 127);
+}