* src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
[fw/sdcc] / src / regression / compare5.c
index 368d8fde72070d2d9fb1e3ef9cd3fa1712f0fbaa..238755a224e9fac4fb318bc5fe22f3cfe33929dd 100644 (file)
@@ -1,3 +1,4 @@
+#include "gpsim_assert.h"
 //
 // compare5.c
 // regression testing program for comparing longs
@@ -5,11 +6,8 @@
 
 #define  COMPARE_OUT_OF_RANGE 1
 
-unsigned char success = 0;
 unsigned char failures = 0;
-unsigned char dummy = 0;
 
-bit bit0 = 0;
 int int0 = 0;
 int int1 = 0;
 char char0 = 0;
@@ -20,11 +18,10 @@ unsigned long ulong0 = 0;
 unsigned long ulong1 = 0;
 
 void
-done ()
+done()
 {
-
-  dummy++;
-
+  ASSERT(MANGLE(failures) == 0);
+  PASSED();
 }
 
 // compare to 0
@@ -428,6 +425,5 @@ main (void)
   long1=-1000;
   c_long2neglit();
 
-  success = failures;
   done ();
 }