* src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
[fw/sdcc] / support / regression / tests / bitwise.c
index 1ddc6f7ee05064c0bc2ee07c3e4d4fb470baab56..3805822f828d783238c2c3b73cb024fcc7ccd357 100644 (file)
@@ -1,6 +1,6 @@
 /** Test the bitwise operators.
     
-    type: char, int, long
+    type: char, short, long
     attr: volatile,
     storage: static,
  */
@@ -28,4 +28,6 @@ testTwoOpBitwise(void)
     ASSERT(({type})(right ^ left) == ({type})0xFC1B);
     ASSERT(({type})(left ^ 0xc1ec) == ({type})0xFC1B);
     ASSERT(({type})(0x3df7 ^ right) == ({type})0xFC1B);
+
+    ASSERT(({type})(~left) == ({type})0xFFFFC208);
 }