PR testsuite/52641
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-pre-23.c
blob6aeb06af9ee8425cc0b95c92e181fded0085806e
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-pre-stats" } */
4 struct { int x; int y; } global;
5 void foo(int n)
7 int i;
8 for ( i=0; i<n; i++)
9 global.y += global.x*global.x;
12 /* { dg-final { scan-tree-dump "Eliminated: 3" "pre" } } */
13 /* { dg-final { cleanup-tree-dump "pre" } } */