Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
gcc.c-torture
/
compile
/
pr46360.c
blob: 1a5239bc1a1b10bd9f1b7f3fcc552c14704af1b3 [
file
] [
log
] [
blame
]
/* PR middle-end/46360 */
__attribute__
((
gnu_inline
,
always_inline
))
extern
inline
char
*
strncpy
(
char
*
dest
,
const
char
*
src
,
__SIZE_TYPE__ len
)
{
return
__builtin_strncpy
(
dest
,
src
,
len
);
}
void
foo
(
char
*
s
)
{
strncpy
(
s
,
""
,
0
);
}