arm: fix typo in dg-require-effective-target [PR118089]
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / alias-access-path-7.c
blob05cf037c2abd56f7e389cebccf92944bd65f4521
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fno-strict-aliasing -fdump-tree-optimized" } */
4 struct S
6 int i;
7 int j;
8 };
9 struct U
11 struct S a[10];
13 int
14 foo (struct U *u, int n, int i, int j)
16 u->a[i].i = 123;
17 u->a[j].j = j;
18 return u->a[i].i;
20 /* { dg-final { scan-tree-dump-times "return 123" 1 "optimized"} } */