Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / loadpre25.c
blobaaf09313e79e4c77a3c26a50b1811fe4d7769f92
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-pre-stats" } */
3 struct X { int i; };
4 int foo(struct X *a, int argc)
6 int b;
7 int c;
8 int i;
9 int d, e;
11 for (i = 0; i < argc; i++)
13 e = a->i;
14 a->i = 9;
16 return d + e;
19 /* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "pre" } } */
20 /* { dg-final { cleanup-tree-dump "pre" } } */