OSDN Git Service

2004-05-20 H.J. Lu <hongjiu.lu@intel.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / 20030926-1.c
1 /* PR optimization/11741  */
2 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
3 /* { dg-options "-O2 -minline-all-stringops" } */
4 /* { dg-options "-O2 -minline-all-stringops -march=pentium4" { target i?86-*-* } } */
5
6 void
7 foo (char *p)
8 {
9   for (;;)
10     {
11       memcpy (p, p + 1, strlen (p));
12       p++;
13     }
14 }
15