Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
pr94130.c
blob: 044e578d373938e717127df30ee100b6fbc156ca [
file
] [
log
] [
blame
]
/* PR tree-optimization/94130 */
int
main
()
{
int
a
[
8
];
char
*
b
=
__builtin_memset
(
a
,
0
,
sizeof
(
a
));
a
[
0
]
=
1
;
a
[
1
]
=
2
;
a
[
2
]
=
3
;
if
(
b
!=
(
char
*)
a
)
__builtin_abort
();
else
asm
volatile
(
""
:
:
"g"
(
a
)
:
"memory"
);
return
0
;
}