1 #include "gpsim_assert.h"
3 /* bit types are not ANSI - so provide a way of disabling bit types
4 * if this file is used to test other compilers besides SDCC */
5 #define SUPPORT_BIT_TYPES 0
7 unsigned char failures=0;
15 unsigned int uint0 = 0;
16 unsigned int uint1 = 0;
17 unsigned char uchar0 = 0;
18 unsigned char uchar1 = 0;
19 unsigned long ulong0 = 0;
20 unsigned long ulong1 = 0;
25 ASSERT(MANGLE(failures) == 0);
30 void or_lit2uchar(void)
54 void or_lit2uint(void)
82 void or_lit2ulong(void)
108 ulong0 |= 0x80000000;
109 if(ulong0 != 0x80000303)
115 void or_uchar2uchar(void)
125 uchar0 = uchar1 | 0x10;
131 void or_uint2uint(void)
140 uint0 = uint1 | 0x10;
147 #if SUPPORT_BIT_TYPES
151 bit0 = bit0 | bit1 | bit2;
178 #if SUPPORT_BIT_TYPES