PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-fre-17.c
blob8695bcf6a2c4536b67a279fd5e0c13e29af4109b
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-fre1-details -fno-tree-sra" } */
4 struct Bar {
5 int dom;
6 };
7 struct Foo {
8 struct Bar doms[3];
9 };
11 int foo(int i, int j, int k)
13 struct Foo f;
15 f.doms[0].dom = i;
16 f.doms[1].dom = j;
17 f.doms[2].dom = k;
18 return f.doms[0LL].dom;
21 /* { dg-final { scan-tree-dump "Replaced f.doms\\\[0\\\].dom with i_" "fre1" } } */