redict/test/integration/malloc.c
Yoav Steinberg 220a0f0880 Squashed 'deps/jemalloc/' content from commit 886e40bb3
git-subtree-dir: deps/jemalloc
git-subtree-split: 886e40bb339ec1358a5ff2a52fdb782ca66461cb
2021-10-10 18:26:48 +03:00

17 lines
244 B
C

#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);
}