1 /* 2 * bug3117721.c 3 */ 4 5 #include <testfwk.h> 6 7 /* should not generate: 8 warning 185: comparison of 'signed char' with 'unsigned char' requires promotion to int */ GenerateBug(unsigned char iKey)9char GenerateBug(unsigned char iKey) 10 { 11 if (iKey == 'T') 12 { 13 return 1; 14 } 15 else if (iKey != 't') 16 { 17 return 2; 18 } 19 return 0; 20 } 21 testBug(void)22void testBug(void) 23 { 24 ASSERT(1); 25 } 26