summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/ivopts-4.c
blob: 9080152398683919119022d824fd1ffe6c878d42 (plain)
1
2
3
4
5
6
7
8
/* { dg-do compile } */
/* { dg-options "-O1" } */
void foo(int *p, long i, int j)
{
  do {
      p[i]++;
  } while (i += j);
}