1 // Test whether this builtin minimally works in G++.
2 // Origin: Kaveh Ghazi Jan 16, 2001
3 // Copyright (C) 2001 Free Software Foundation.
5 // Special g++ Options: -O2
9 extern "C" void abort (void);
10 extern "C" char *strcpy (char *, const char *);
11 extern "C" int memcmp (const void *, const void *, __SIZE_TYPE__);
19 if (strcpy (f, "hello world") != f
20 || memcmp (f, "hello world", sizeof ("hello world")))
23 if (std::strcpy (f, "bye world") != f
24 || memcmp (f, "bye world", sizeof ("bye world")))
27 if (::__builtin_strcpy (f, "hello world") != f
28 || memcmp (f, "hello world", sizeof ("hello world")))
36 static char * ::strcpy (char *, const char *)