aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/execute/pr56250.c
blob: 8da36f83a8e2ed3a8ae9b62a7785d4d1fb1fe09e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR tree-optimization/56250 */

extern void abort (void);

int
main ()
{
  unsigned int x = 2;
  unsigned int y = (0U - x / 2) / 2;
  if (-1U / x != y)
    abort ();
  return 0;
}