summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/931228-1.c
blob: dcd3b65ff3bacc0712ce4b9ce8d569d346b43a98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
f (x)
{
  x &= 010000;
  x &= 007777;
  x ^= 017777;
  x &= 017770;
  return x;
}

main ()
{
  if (f (-1) != 017770)
    abort ();
  exit (0);
}