aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr46355.c
blob: e644ec584e522b9a2d4be7bdf5f71064f9179b58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O -ftree-loop-distribution -fstrict-overflow" } */

void
foo (int *dest, int i, int u, int v)
{
  int j = i;
  while (i)
    {
      dest[j--] = v;
      dest[j--] = u;
    }
}