1/* PR middle-end/37103 */ 2 3extern void abort (void); 4 5void 6foo (unsigned short x) 7{ 8 signed char y = -1; 9 if (x == y) 10 abort (); 11} 12 13void 14bar (unsigned short x) 15{ 16 unsigned char y = -1; 17 if (x == y) 18 abort (); 19} 20 21int 22main (void) 23{ 24 if (sizeof (int) == sizeof (short)) 25 return 0; 26 foo (-1); 27 if (sizeof (short) > 1) 28 bar (-1); 29 return 0; 30} 31