1 /* A test for induction variable merging. */
3 /* { dg-do compile } */
4 /* { dg-options "-O1 -fdump-tree-optimized" } */
12 for (iter
= 0, jter
= 2; iter
< 100; iter
++, jter
++)
19 /* Only iter variable should remain. */
21 /* { dg-final { scan-tree-dump-times "int iter" 1 "optimized" } } */
22 /* { dg-final { scan-tree-dump-times "jter" 0 "optimized" } } */
24 /* And the use of jter should be replaced by iter + 2 */
26 /* { dg-final { scan-tree-dump-times " \\+ 2" 1 "optimized" } } */
28 /* { dg-final { cleanup-tree-dump "optimized" } } */