modernc.org/cc@v1.0.1/testdata/gcc-6.3.0/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strcpy.c (about) 1 extern void abort (void); 2 extern int inside_main; 3 4 __attribute__ ((__noinline__)) 5 char * 6 strcpy (char *d, const char *s) 7 { 8 char *r = d; 9 #if defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__ 10 if (inside_main) 11 abort (); 12 #endif 13 while ((*d++ = *s++)); 14 return r; 15 }