summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/loop-4.c
blob: b308aa27689afe936944a463fd2e15dc67aad654 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
int
f()
{
  int j = 1;
  long i;
  for (i = -0x70000000L; i < 0x60000000L; i += 0x10000000L) j <<= 1;
  return j;
}

int
main ()
{
  if (f () != 8192)
    abort ();
  exit (0);
}