1 /* PR debug/45849 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-g -Wno-uninitialized" } */ 4 5 extern void bar (void); 6 7 void foo(long repllen,char * rp)8foo (long repllen, char *rp) 9 { 10 char *matchend; 11 char *scan; 12 long len; 13 char *matchstart; 14 char *text; 15 char *t; 16 17 repllen--; 18 19 for (;;) 20 { 21 matchstart = t + rp[0]; 22 matchend = rp; 23 len = matchstart - text + repllen * (matchend - matchstart); 24 while (len) 25 ; 26 for (scan = text; scan != rp; scan++) 27 bar (); 28 if (matchstart) 29 text = matchend; 30 } 31 } 32