aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr57083.c
blob: 070a53d2165211b0269dc5ba55adbb8276dede4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR tree-optimization/57083 */
/* { dg-do run { target int32plus } } */

extern void abort (void);
short x = 1;
int y = 0;

int
main ()
{
  unsigned t = (0x7fff8001U - x) << (y == 0);
  if (t != 0xffff0000U)
    abort ();
  return 0;
}