blob: 37812c07b0cc98d5f7bdae65f1067957acdbcfbf [file] [log] [blame]
/* PR c/48197 */
extern void abort (void);
static int y = 0x8000;
int
main ()
{
unsigned int x = (short)y;
if (sizeof (0LL) == sizeof (0U))
return 0;
if (0LL > (0U ^ (short)-0x8000))
abort ();
if (0LL > (0U ^ x))
abort ();
if (0LL > (0U ^ (short)y))
abort ();
if ((0U ^ (short)-0x8000) < 0LL)
abort ();
if ((0U ^ x) < 0LL)
abort ();
if ((0U ^ (short)y) < 0LL)
abort ();
return 0;
}