x86: Tune Skylake, Cannonlake and Icelake as Haswell
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / builtins / lib / stpcpy.c
blob2c7c8178bab86a1c052af59c36bc0a9dca55a7ce
1 extern void abort (void);
2 extern int inside_main;
4 __attribute__ ((__noinline__))
5 char *
6 stpcpy (char *dst, const char *src)
8 #ifdef __OPTIMIZE__
9 if (inside_main)
10 abort ();
11 #endif
13 while (*src != 0)
14 *dst++ = *src++;
16 *dst = 0;
17 return dst;