summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/930921-1.c
blob: 12e04e3095461db9be096256e3dc504794a85bdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
f (x)
     unsigned x;
{
  return (unsigned) (((unsigned long long) x * 0xAAAAAAAB) >> 32) >> 1;
}

main ()
{
  unsigned i;

  for (i = 0; i < 10000; i++)
    if (f (i) != i / 3)
      abort ();
  exit (0);
}