Sign in
gnu
/
gcc
/
e5cfb9cac1d7aba9a8ea73bfe7922cfaff9d61f3
/
.
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr91445.c
blob: 1d24d456a576a263564c03042a24d0f1edc577a5 [
file
] [
log
] [
blame
]
/* { dg-do run } */
struct
S
{
_Bool
x
;
};
void
foo
(
struct
S
*
s
)
{
__builtin_memset
(
s
,
0x11
,
sizeof
(
struct
S
));
s
->
x
=
1
;
}
int
main
()
{
struct
S s
;
foo
(&
s
);
char
c
;
__builtin_memcpy
(&
c
,
&
s
.
x
,
1
);
if
(
c
!=
1
)
__builtin_abort
();
return
0
;
}