Merged with mainline at revision 128810.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / 20030926-1.c
blob0425f2456aafa861bb4daec095948b2efa335810
1 /* PR optimization/11741 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -minline-all-stringops" } */
4 /* { dg-options "-O2 -minline-all-stringops -march=pentium4" { target ilp32 } } */
6 extern void *memcpy (void *, const void *, __SIZE_TYPE__);
7 extern __SIZE_TYPE__ strlen (const char *);
9 void
10 foo (char *p)
12 for (;;)
14 memcpy (p, p + 1, strlen (p));
15 p++;