3 regression testing program for comparing literals to variables
7 unsigned int aint0
= 0;
8 unsigned int aint1
= 0;
9 unsigned char achar0
= 0;
10 unsigned char achar1
= 0;
22 ASSERT(!(achar0
!= 0));
26 ASSERT(!(achar1
== 0));
30 ASSERT(!(aint0
!= 0));
34 ASSERT(!(aint1
== 0));
50 ASSERT(!(achar0
== 1));
52 ASSERT(!(achar1
!= 1));
54 ASSERT(!(aint0
== 1));
56 ASSERT(!(aint1
!= 1));
68 ASSERT(!(achar0
!= 2));
70 ASSERT(!(aint0
!= 2));
82 ASSERT(!(achar0
!= 0xff));
84 ASSERT(!(aint0
!= 0xff));
86 ASSERT(!(aint0
== 0xfe));
88 ASSERT(!(aint0
== 0xff00U
));
101 ASSERT(!(achar0
!= 0xa5));
103 ASSERT(!(aint0
!= 0xa5));
105 ASSERT(!(aint0
== 0xa4));
107 ASSERT(!(aint0
== 0xa500U
));
119 ASSERT(!(achar0
== (unsigned char)0xa500U
));
121 ASSERT(!(aint0
!= 0xa500U
));
123 ASSERT(!(aint0
== 0xa400U
));
125 ASSERT(!(aint0
== 0x00a5));
134 #ifndef __SDCC_pdk14 // Lack of memory
138 ASSERT(!(achar0
== (unsigned char)0xabcdU
));
140 ASSERT(!(aint0
!= 0xabcdU
));
142 ASSERT(!(aint0
== 0xab00U
));
144 ASSERT(!(aint0
== 0x00cd));
146 ASSERT(aint0
== (unsigned short int)0x1234abcdU
);
154 #ifndef __SDCC_pdk14 // Lack of memory