mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
15 lines
236 B
C
15 lines
236 B
C
#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);
|
|
}
|