2008-05-30 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-fre-17.c
blobaced64977eaf76b3cbb5c2b871a498d0a8a4af9e
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-fre-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_" "fre" } } */
22 /* { dg-final { cleanup-tree-dump "fre" } } */