-//#include "p16c84.h"
+#include "gpsim_assert.h"
// Addition tests
/* bit types are not ANSI - so provide a way of disabling bit types
* if this file is used to test other compilers besides SDCC */
-#define SUPPORT_BIT_TYPES 1
+#define SUPPORT_BIT_TYPES 0
/* Some compilers that support bit types do not support bit arithmetic
* (like bitx = bity + bitz;) */
#define SUPPORT_BIT_ARITHMETIC 1
-unsigned char success=0;
unsigned char failures=0;
-unsigned char dummy=0;
#if SUPPORT_BIT_TYPES
char char2 = 0;
-void done()
+void
+done()
{
-
- dummy++;
-
+ ASSERT(MANGLE(failures) == 0);
+ PASSED();
}
void sub_int1(void)
int1 = 9;
sub_compound_int();
- success = failures;
done();
}