summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.dg/20000629-1.c
blob: b8c7f286d6978a304894e54196b73defa04b2b3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-O2 -g" } */

void foo(register char *p)
{
  char c, *q, *sp;
  while (1) {
    *p++=0;
    sp=p+1;
    c=*sp;
    *p++=0;
  }
}
OpenPOWER on IntegriCloud