Sign in
fuchsia
/
third_party
/
github.com
/
jemalloc
/
jemalloc
/
ea6b3e973b477b8061e0076bb257dbd7f3faa756
/
.
/
test
/
integration
/
malloc.c
blob: 8b33bc8f3b5911370b7e8695413221624f688321 [
file
] [
log
] [
blame
]
#include
"test/jemalloc_test.h"
TEST_BEGIN
(
test_zero_alloc
)
{
void
*
res
=
malloc
(
0
);
assert
(
res
);
size_t
usable
=
malloc_usable_size
(
res
);
assert
(
usable
>
0
);
free
(
res
);
}
TEST_END
int
main
(
void
)
{
return
test
(
test_zero_alloc
);
}