summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/unsorted/bt386.c
blob: 283ab5fa64aeac5dbdee05784828b2af8b27ad1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
foo (a, b)
{
  return (a & (1 << b)) != 0;
}

bar (a, b)
{
  a ^= (1 << b);
  return a != 0;
}

main ()
{
  int i;
  for (i = 0; i < 32; i++)
    printf ("%d ", foo (0x8000000f, i));
  puts ("");
}