rt_gccstream/gcc/testsuite/g++.dg/torture/pr34235.C

12 lines
203 B
C

/* { 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;
}