1 #include "gpsim_assert.h"
4 // regression testing program for comparing longs
7 #define COMPARE_OUT_OF_RANGE 1
9 unsigned char failures = 0;
17 unsigned long ulong0 = 0;
18 unsigned long ulong1 = 0;
23 ASSERT(MANGLE(failures) == 0);
153 // compare to 0x20000
166 if(ulong0 != 0x20000)
172 if(ulong1 == 0x20000)
181 /* if(long0 < 0x12345)
218 #ifdef COMPARE_OUT_OF_RANGE
241 #ifdef COMPARE_OUT_OF_RANGE
270 #ifdef COMPARE_OUT_OF_RANGE
271 if(int0 == 0x1234abcd)
277 // assumes char1 == 0
290 // assumes char0 = -1
310 // long0 = long1 = ulong0 = ulong1 == 0
312 void c_long2long_eq(void)
338 // long0 = ulong0 == 0
339 // long1 = ulong1 == 1
341 void c_long2long_neq(void)