PR testsuite/52641
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / sra-10.c
blob49bfa31fa8e55d1a96d464f981463304c055e1ac
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-optimized" } */
4 struct S
6 int a[1];
7 int z[256];
8 };
10 void foo (struct S *s, int i)
12 struct S disappear;
14 disappear.a[i] = 12;
15 *s = disappear;
18 /* { dg-final { scan-tree-dump-times "disappear" 0 "optimized"} } */
19 /* { dg-final { cleanup-tree-dump "optimized" } } */