summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/unsorted/band.c
blob: 74b02fd3b3458a03b539b500ac221deed1ba7977 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
foo (a)
{
  return (a & (1 << 31)) != 0;
}

main ()
{
  if (foo (0))
    puts ("foo");
  else
    puts ("bar");
  if (foo (~0))
    puts ("foo");
  else
    puts ("bar");
}