1 /* PR tree-optimization/64715 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
5 extern inline __attribute__ ((always_inline
, gnu_inline
, artificial
, nothrow
, leaf
)) char *
6 strcpy (char *__restrict dest
, const char *__restrict src
)
8 return __builtin___strcpy_chk (dest
, src
, __builtin_object_size (dest
, 2 > 1));
11 const char *str1
= "JIHGFEDCBA";
17 struct A
{ char buf1
[9]; char buf2
[1]; } a
;
18 strcpy (a
.buf1
+ (0 + 4), str1
+ 5);
22 /* { dg-final { scan-tree-dump "__builtin___strcpy_chk\[^;\n\r\]*, 5\\\);" "optimized" } } */