extern int strcmp (const char *, const char *);
int x = 123;
-int main ()
+void
+main_test (void)
{
const char *const s1 = "hello world";
const char *const s2 = "";
strcpy (dst, s1);
if (__builtin_strncat (dst, "", 100) != dst || strcmp (dst, s1))
abort();
-
- return 0;
-}
-
-#ifdef __OPTIMIZE__
-/* When optimizing, all the above cases should be transformed into
- something else. So any remaining calls to the original function
- should abort. */
-__attribute__ ((noinline))
-static char *
-strncat (char *s1, const char *s2, size_t n)
-{
- abort();
}
-#endif