no bitfields yet
[fw/sdcc] / support / regression / tests / logic.c
index 085cd7464bf327d8382a48c2b35eedfb97d7ee15..25f3e817c78f944aabc5f970bfc579fe87fe98f6 100644 (file)
@@ -51,19 +51,16 @@ testLogicalAnd(void)
     ASSERT(true && !false);
     ASSERT(!false && true);
 
-#if 1
-    /* PENDING: Doesn't work. */
     /* Test that the evaluation is aborted on the first false. */
     if (true && false && neverGetHere()) {
         /* Tested using neverGetHere() */
     }
-#else
+
     /* Alternate that is similar. */
     if (true && false) {
         neverGetHere();
         /* Tested using neverGetHere() */
     }
-#endif
 
     resetGetHere();
     /* Test that the evaluation is done left to right. */
@@ -82,15 +79,10 @@ testLogicalOr(void)
     ASSERT(!true || !false);
     ASSERT(false || true);
 
-#if 0
-    /* PENDING: Doesn't work in sdcc. */
     /* Test that the evaluation is aborted on the first hit. */
     if (false || true || neverGetHere()) {
         /* Tested using neverGetHere() */
     }
-#else
-    /* No equivalent. */
-#endif
 
     resetGetHere();
     /* Test that the evaluation is done left to right. */