summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr44393.c
blob: 906d5932a0fbff120c91cab425320ab069c22d12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-Os -ftree-loop-distribution" } */

int i;
void foo ()
{
  int **pp = 0, *p = 0;
  while (--i)
    {
      *p++ = 0;
      *pp++ = p;
    }
  i = *p;
}