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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr91445.c
blob
1d24d456a576a263564c03042a24d0f1edc577a5
1
/* { dg-do run } */
2
3
struct
S
{
_Bool x
; };
4
5
void
6
foo
(
struct
S
*
s
)
7
{
8
__builtin_memset
(
s
,
0x11
,
sizeof
(
struct
S
));
9
s
->
x
=
1
;
10
}
11
12
int
13
main
()
14
{
15
struct
S s
;
16
foo
(&
s
);
17
char
c
;
18
__builtin_memcpy
(&
c
, &
s
.
x
,
1
);
19
if
(
c
!=
1
)
20
__builtin_abort
();
21
return
0
;
22
}