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
PR rtl-optimization/88018
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
torture
/
pr46137.c
blob
3e44ff6b7c97ec4037290a0074a5e57d2c1b64a8
1
/* { dg-do compile } */
2
3
struct
X
{ };
4
5
static
inline
void
*
6
bar
(
void
*
dst
,
void
*
src
)
7
{
8
return
__builtin___memcpy_chk
(
dst
,
src
,
sizeof
(
struct
X
),
9
__builtin_object_size
(
dst
,
0
));
10
}
11
12
struct
X
13
foo
(
struct
X
*
x
)
14
{
15
struct
X any
;
16
bar
(&
any
,
x
);
17
return
any
;
18
}