Applied patch #2762516
[fw/sdcc] / src / regression / add.c
index d3e1406bd0cf2731ae40c2a60b37e9f91854e7f8..99fce7a90dfa53a35c9bc53bbab69a469c9aaa30 100644 (file)
@@ -4,7 +4,7 @@
 
 /* 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;) */
@@ -166,18 +166,18 @@ void add_bit2uint(void)
 void main(void)
 {
   add_lit2uchar();
-  ASSERT(_failures == 0);
+  ASSERT(MANGLE(failures) == 0);
 
   achar0=16;
   achar1=0;
   add_uchar2uchar();
-  ASSERT(_failures == 0);
+  ASSERT(MANGLE(failures) == 0);
 
 
   achar0 = 0;
   achar1 = 32;
   add_uchar2uchar2();
-  ASSERT(_failures == 0);
+  ASSERT(MANGLE(failures) == 0);
 
 #if SUPPORT_BIT_TYPES
   add_bits();
@@ -185,7 +185,7 @@ void main(void)
   add_bit2uchar();
   add_bit2uint();
 #endif
-  ASSERT(_failures == 0);
+  ASSERT(MANGLE(failures) == 0);
 
   done();
 }