repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
RISC-V: Add support for riscv-*-*.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
compile
/
pr46360.c
blob
1a5239bc1a1b10bd9f1b7f3fcc552c14704af1b3
1
/* PR middle-end/46360 */
2
3
__attribute__
((
gnu_inline
,
always_inline
))
extern inline
char
*
4
strncpy
(
char
*
dest
,
const char
*
src
,
__SIZE_TYPE__ len
)
5
{
6
return
__builtin_strncpy
(
dest
,
src
,
len
);
7
}
8
9
void
10
foo
(
char
*
s
)
11
{
12
strncpy
(
s
,
""
,
0
);
13
}