2 !!DESCRIPTION!! test compare
3 !!ORIGIN!! SDCC regression tests
4 !!LICENCE!! GPL, read COPYING.GPL
14 #ifdef SUPPORT_BIT_TYPES
19 unsigned char success = 0;
20 unsigned char failures = 0;
21 unsigned char dummy = 0;
23 unsigned char achar0 = 0;
24 unsigned char achar1 = 0;
25 unsigned int aint0 = 0;
26 unsigned int aint1 = 0;
37 /* achar0 should be zero */
40 compare_char_to_lits1 (void)
55 /* achar0 should be `5' */
57 compare_char_to_lits2 (void)
72 /* achar0 should equal achar1 */
74 compare_char_to_char1 (void)
83 /* achar0 should be different than achar1 */
85 compare_char_to_char2 (void)
91 /* aint0 should be zero */
94 compare_int_to_lits1 (void)
109 /* aint0 should be `5' */
111 compare_int_to_lits2 (void)
126 /* aint0 should be `0x1234' */
128 compare_int_to_lits3 (void)
143 /* aint0 should equal aint1 */
145 compare_int_to_int1 (void)
151 /* aint0 should be different than aint1 */
153 compare_int_to_int2 (void)
162 compare_char_to_lits1 ();
163 compare_char_to_char1 ();
165 compare_char_to_lits2 ();
166 compare_char_to_char2 ();
168 compare_int_to_lits1 ();
170 compare_int_to_lits2 ();
172 compare_int_to_lits3 ();
173 compare_int_to_int2 ();
175 compare_int_to_int1 ();
180 printf("failures: %d\n",failures);