2 !!DESCRIPTION!! Compound comparisons
3 !!ORIGIN!! SDCC regression tests
4 !!LICENCE!! GPL, read COPYING.GPL
10 unsigned char success=0;
11 unsigned char failures=0;
12 unsigned char dummy=0;
14 #ifdef SUPPORT_BIT_TYPES
20 unsigned char uc0 = 0;
21 unsigned char uc1 = 0;
22 unsigned long uL0 = 0;
23 unsigned long uL1 = 0;
30 void compound_compare_uc(void)
32 failures += (uc0 != uc1);
35 void compound_compare_ui(void)
37 failures += (ui0 != ui1);
40 void compound_compare_ul(void)
42 failures += (uL0 != uL1);
45 void compound_compare_uc_lit(void)
47 failures += (uc0 != 0xff);
48 failures += (uc0 != 0xff);
49 failures += (uc0 == 0);
54 compound_compare_uc();
55 compound_compare_ui();
56 compound_compare_ul();
59 compound_compare_uc_lit();
63 printf("failures: %d\n",failures);