summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/980424-1.c
blob: 514e91773a5d2fd9af8198cbf2c6690d12186567 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
int i, a[99];

void f (int one)
{
  if (one != 1)
    abort ();
}

void
g ()
{
  f (a[i & 0x3f]);
}

int
main ()
{
  a[0] = 1;
  i = 0x40;
  g ();
  exit (0);
}