summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20090207-1.c
blob: 51a686028ea9e803269b0c6b4d6fca794a297ebc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
int foo(int i)
{
  int a[32];
  a[1] = 3;
  a[0] = 1;
  a[i] = 2;
  return a[0];
}
extern void abort (void);
int main()
{
  if (foo (0) != 2
      || foo (1) != 1)
    abort ();
  return 0;
}