summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr23424-1.c
blob: 91950d77a43c012443803f612bf77416c859e6d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
extern char *x;
extern void foo (void);
void f (char *s, char *se, char *mp, char *y)
{
  while (s != se)
    {
      char *p;
      foo ();
      p = s + *mp;
      *y++ = *p;
      s = p;
    }

  x = s;
}