summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr42728.c
blob: 7b2fbb690fbedf923bc7f817f9ac116f4f94147f (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR debug/42728 */
/* { dg-do compile } */
/* { dg-options "-O1 -fcompare-debug" } */

void
foo (char *a)
{
  char *b;
  for (; *a; a++)
    a = b++;
}