annotate gcc/testsuite/gcc.dg/pr41573.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-options "-O2" } */
kono
parents:
diff changeset
3 __inline __attribute__ ((__always_inline__)) char *
kono
parents:
diff changeset
4 strcpy (char *__dest, __const char *__src)
kono
parents:
diff changeset
5 {
kono
parents:
diff changeset
6 return __builtin___strcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1));
kono
parents:
diff changeset
7 }
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 const char* get_attr(unsigned attr)
kono
parents:
diff changeset
10 {
kono
parents:
diff changeset
11 static char tmp[256];
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 strcpy(tmp, "");
kono
parents:
diff changeset
14 return tmp;
kono
parents:
diff changeset
15 }