* src/mcs51/ralloc.c (spillThis, spilSomething): fixed bug 2435941
[fw/sdcc] / src / regression / and2.c
index 3cfcff219f4be8104d326c68cc1cfb0b0b25035c..c667bad435d46d99220756e475834a512a71670f 100644 (file)
@@ -1,9 +1,6 @@
-#define __16F873
-#include "p16f873.h"
+#include "gpsim_assert.h"
 
-unsigned char success=0;
 unsigned char failures=0;
-unsigned char dummy=0;
 
 
 unsigned int uint0 = 0;
@@ -12,11 +9,11 @@ unsigned char uchar0 = 0;
 unsigned char uchar1 = 0;
 unsigned long ulong0 = 0;
 
-void done()
+void
+done()
 {
-
-  dummy++;
-
+  ASSERT(MANGLE(failures) == 0);
+  PASSED();
 }
 
 // uchar0 = 0x13;
@@ -114,6 +111,5 @@ void main(void)
   uchar0 = 0x13;
   neg_compound1();
 
-  success = failures;
   done();
 }