Applied patch #2762516
[fw/sdcc] / src / regression / nestfor.c
index 6ce48fc8043ff5d4620547888a8f081c70c222a5..654efe80d5229e49fef24fb9c2d3dc3a1013dcda 100644 (file)
@@ -1,12 +1,8 @@
-#define __16F873
-#include "p16f873.h"
-//#include "p16c84.h"
+#include "gpsim_assert.h"
+#include "picregs.h"
 
-unsigned char success=0;
 unsigned char failures=0;
-unsigned char dummy=0;
 
-bit bit0 = 0;
 unsigned int uint0 = 0;
 unsigned int uint1 = 0;
 unsigned char uchar0 = 0;
@@ -19,11 +15,11 @@ void dput(unsigned char val)
        PORTA = 0x00;
 }
 
-void done()
+void
+done()
 {
-
-  dummy++;
-
+  ASSERT(MANGLE(failures) == 0);
+  PASSED();
 }
 
 /* both loops use the loop variable inside the inner loop */
@@ -139,6 +135,5 @@ void main(void)
   for4();
   for5();
 
-  success = failures;
   done();
 }