1 2 3 4 5 6 7 8 9 10 11
/* { dg-do run } */ extern "C" void abort (void); int main() { short x = -1; unsigned int c = ((unsigned int)x) >> 1; if (c != 0x7fffffff) abort(); return 0; }