1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-fre1-details -fno-tree-sra" } */
3 
4 struct Bar {
5   int dom;
6 };
7 struct Foo {
8   struct Bar doms[3];
9 };
10 
foo(int i,int j,int k)11 int foo(int i, int j, int k)
12 {
13   struct Foo f;
14 
15   f.doms[0].dom = i;
16   f.doms[1].dom = j;
17   f.doms[2].dom = k;
18   return f.doms[0LL].dom;
19 }
20 
21 /* { dg-final { scan-tree-dump "Replaced f.doms\\\[0\\\].dom with i_" "fre1" } } */
22 
23