* src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
[fw/sdcc] / support / regression / tests / bug-460010.c
1 /* bug 460010
2  */
3 #include <testfwk.h>
4
5 void 
6 func( unsigned char a )
7 {
8   UNUSED(a);
9 }
10
11 void
12 testBadPromotion(void)
13 {
14   unsigned char c=*((unsigned char*)(0xa000));
15   
16   func(c); 
17   
18   c+='0'; /* is evaluated as an 8-bit expr */ 
19   
20   func(c); 
21
22   c+='A'-'0'; /* is a 16-bit expr ??? */ 
23   
24   func(c); 
25 }