diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/Wobjsize-1.h')
-rw-r--r-- | gcc/testsuite/gcc.dg/Wobjsize-1.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/Wobjsize-1.h b/gcc/testsuite/gcc.dg/Wobjsize-1.h new file mode 100644 index 000000000..a879f6db9 --- /dev/null +++ b/gcc/testsuite/gcc.dg/Wobjsize-1.h @@ -0,0 +1,8 @@ +#pragma GCC system_header + +extern __inline __attribute__ ((__always_inline__,__artificial__,__gnu_inline__)) char * +__attribute__ ((__nothrow__)) strcpy (char *__restrict __dest, __const char *__restrict __src) +{ + return __builtin___strcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); +} + |