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