Remove outermost loop parameter.
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / tree-ssa / loop-11.c
blobd6c656f31f077ec2b2758d85fcf66714f9e3cd29
1 /* A test for final value replacement and higher-order ivs,
2 see PR 22442. */
4 /* { dg-do compile } */
5 /* { dg-options "-O1 -fdump-tree-optimized" } */
7 void bar (unsigned);
9 void foo (void)
11 unsigned i, a;
13 for (i = 0; i < 5; i++)
14 a = i * i;
16 bar (a);
19 /* Final value of a gets replaced. */
21 /* { dg-final { scan-tree-dump-times "\\(16\\)" 1 "optimized" } } */
23 /* And the empty loop is removed. */
25 /* { dg-final { scan-tree-dump-times "if " 0 "optimized" } } */
27 /* { dg-final { cleanup-tree-dump "optimized" } } */