aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/tree-ssa/alias-9.c
blob: 0a20e054366dea551e2e255c422a02be550d4d41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do run } */
/* { dg-options "-O2" } */

void abort(void);
int main()
{
  int a[32];
  int i = 1;
  a[0] = 1;
  a[1] = 2;
  if (*(a + i) != 2)
    abort();
  return 0;
}