2 !!DESCRIPTION!! Substraction Test
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;
34 signed char char0 = 0;
35 signed char char1 = 0;
36 signed char char2 = 0;
76 void sub_char_int(void)
102 void assign_char2int(void)
108 /* printf("%2x %2x %2x %d\n",0x7f,int0,char0,failures); */
114 /* printf("%2x,%d %2x,%d %2x,%d %d\n",-5,-5,(int)int1,(int)int1,(int)char1,(int)char1,failures); */
117 void sub_compound_char(void)
123 if((char1 - char0 - 5) != 0)
127 void sub_compound_int(void)
133 if((int1 - int0 - 5) != 0)
143 printf("failures: %d\n",failures);
150 printf("failures: %d\n",failures);
155 printf("failures: %d\n",failures);
159 printf("failures: %d\n",failures);
166 printf("failures: %d\n",failures);