1 #include "gpsim_assert.h"
4 // regression testing program for comparing longs
7 #define COMPARE_OUT_OF_RANGE 1
9 unsigned char failures = 0;
18 unsigned long ulong0 = 0;
19 unsigned long ulong1 = 0;
24 ASSERT(MANGLE(failures) == 0);
154 // compare to 0x20000
167 if(ulong0 != 0x20000)
173 if(ulong1 == 0x20000)
182 /* if(long0 < 0x12345)
219 #ifdef COMPARE_OUT_OF_RANGE
242 #ifdef COMPARE_OUT_OF_RANGE
271 #ifdef COMPARE_OUT_OF_RANGE
272 if(int0 == 0x1234abcd)
278 // assumes char1 == 0
291 // assumes char0 = -1
311 // long0 = long1 = ulong0 = ulong1 == 0
313 void c_long2long_eq(void)
339 // long0 = ulong0 == 0
340 // long1 = ulong1 == 1
342 void c_long2long_neq(void)