PR testsuite/52641
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / alias-7.c
blob7ef604be293d907a976a5c3ae1e21ba27b7d7169
1 /* { dg-do run } */
2 /* { dg-options "-O2" } */
4 void abort(void);
5 int main()
7 int a[2];
8 int *p = a;
9 int i;
10 a[0] = 1;
11 a[1] = 2;
12 for (i=0; i<2; ++i)
13 if (p[i] != i+1)
14 abort();
15 return 0;