summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20081101-1.c
blob: 0e484d0624fa6ec261a0e81d9b1d84e2f3c07560 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
int foo (int i, int b)
{
  int mask;
  int result;
  if (b)
    mask = -1;
  else
    mask = 0;
  result = i + 1;
  result = result & mask;
  return result;
}