Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
pr36765.c
blob: 6883b0cfd753f77c8618d1a26b6ba8eca4786e44 [
file
] [
log
] [
blame
]
int
__attribute__
((
noinline
))
foo
(
int
i
)
{
int
*
p
=
__builtin_malloc
(
4
*
sizeof
(
int
));
*
p
=
0
;
p
[
i
]
=
1
;
return
*
p
;
}
extern
void
abort
(
void
);
int
main
()
{
if
(
foo
(
0
)
!=
1
)
abort
();
return
0
;
}