aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/tree-ssa/vrp37.c
blob: fba35a48bbfc4f33392fc84303f0416ad325a7e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O2" } */

unsigned char x;
int foo(void)
{
  unsigned long long i = x;
  i = i + 0x80000000;
  if (i > 0xffffffff)
    return x;
  return 0;
}