OSDN Git Service

Index: libcpp/ChangeLog
[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 /* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */
6
7 extern void *memcpy (void *, const void *, __SIZE_TYPE__);
8 extern __SIZE_TYPE__ strlen (const char *);
9
10 void
11 foo (char *p)
12 {
13   for (;;)
14     {
15       memcpy (p, p + 1, strlen (p));
16       p++;
17     }
18 }
19