1 /* A test for induction variable merging. */
3 /* { dg-do compile } */
4 /* { dg-options "-O1 -fdump-tree-vars" } */
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 "vars" } } */
22 /* { dg-final { scan-tree-dump-times "jter" 0 "vars" } } */
24 /* And the use of jter should be replaced by iter + 2 */
26 /* { dg-final { scan-tree-dump-times " \\+ 2" 1 "vars" } } */
28 /* { dg-final { cleanup-tree-dump "vars" } } */