ASSERT(true && !false);
ASSERT(!false && true);
- /* PENDING: Doesn't work. */
/* Test that the evaluation is aborted on the first false. */
if (true && false && neverGetHere()) {
/* Tested using neverGetHere() */
ASSERT(!true || !false);
ASSERT(false || true);
- /* PENDING: Doesn't work in sdcc. */
/* Test that the evaluation is aborted on the first hit. */
if (false || true || neverGetHere()) {
/* Tested using neverGetHere() */
ASSERT(result == -15);
}
-/** PENDING: Disabled. */
static void
testShiftByteMultiples(void)
{
-#if 0
- /* PENDING */
{attr} {storage} {type} i;
i = ({type}){vals};
- ASSERT(i>>8 == (({type}){vals} >> 8));
- ASSERT(i>>16 == (({type}){vals} >> 16));
- ASSERT(i>>24 == (({type}){vals} >> 24));
+ ASSERT(i>>8 == ({type})({vals} >> 8));
+ ASSERT(i>>16 == ({type})({vals} >> 16));
+ ASSERT(i>>24 == ({type})({vals} >> 24));
i = ({type}){vals};
- ASSERT(i<<8 == (({type}){vals} << 8));;
- ASSERT(i<<16 == (({type}){vals} << 16));
- ASSERT(i<<24 == (({type}){vals} << 24));
-#endif
+ ASSERT(({type})(i<<8) == ({type})({vals} << 8));;
+ ASSERT(({type})(i<<16) == ({type})({vals} << 16));
+ ASSERT(({type})(i<<24) == ({type})({vals} << 24));
}
static void