1// PR tree-optimization/17724 2// { dg-do compile } 3// { dg-options "-O2" } 4 5namespace N { char *strcpy (char *, const char *); } 6extern "C" char *strcpy (char *, const char *); 7inline char *N::strcpy (char *s, const char *t) { return ::strcpy (s, t); } 8 9struct S { ~S (); }; 10int foo (); 11 12int 13main () 14{ 15 S s; 16 int a; 17 char b[64]; 18 N::strcpy (b, "ABCDEFGHIJKLM"); 19 while ((a = foo ()) != -1) 20 if (a) 21 return -1; 22 return 0; 23} 24