* src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
[fw/sdcc] / src / regression / configword.c
index e28c417ac7c21642d18a1e1aebf07ee1be28e796..e3d9aefe565223ab1d927502e1cbb17a841e2f6a 100644 (file)
@@ -1,9 +1,8 @@
+#include "gpsim_assert.h"
 /* configword.c - illustrates how the configuration word can
  * be assigned */
 
-unsigned char success=0;
 unsigned char failures=0;
-unsigned char dummy=0;
 
 /* copied from 16f877.inc file supplied with gpasm */
 
@@ -38,16 +37,16 @@ word at 0x2007  CONFIG = _WDT_OFF & _PWRTE_ON;
 /* to do -- write a test that puts the PIC to sleep,
  * and verify that the WDT wakes it up */
 
-void done()
+void
+done()
 {
-
-  dummy++;
-
+  ASSERT(MANGLE(failures) == 0);
+  PASSED();
 }
+
 void main(void)
 {
   dummy = 0;
 
-  success = failures;
   done();
 }