aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr95649.c
blob: cc9b7640c19f74ccd967f4dc0ca7af89c54aa72f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do compile } */
/* { dg-options "-O2 -fno-tree-scev-cprop" } */

char b (void);
char *d;
int e;
int f;
void
g (char *h)
{
  while (d)
    {
      long i = b ();
      if (h + i > d)
	break;
      if (f > 0 || e)
	do
	  *h++ = *h;
	while (--i);
    }
}