PR testsuite/52641
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / loadpre23.c
blob2273accbaa75323e7726d58855cd875b19e8478f
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-pre-stats" } */
4 struct {
5 int a;
6 int large[100];
7 } x;
9 int foo(int argc)
11 int b;
12 int c;
13 int i;
14 int d, e;
16 for (i = 0; i < argc; i++)
18 e = x.a;
19 x.a = 9;
21 return d + e;
24 /* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "pre" } } */
25 /* { dg-final { cleanup-tree-dump "pre" } } */