Home | History | Annotate | Line # | Download | only in integration
      1 #include "test/jemalloc_test.h"
      2 
      3 TEST_BEGIN(test_zero_alloc) {
      4 	void *res = malloc(0);
      5 	assert(res);
      6 	size_t usable = TEST_MALLOC_SIZE(res);
      7 	assert(usable > 0);
      8 	free(res);
      9 }
     10 TEST_END
     11 
     12 int
     13 main(void) {
     14 	return test(
     15 	    test_zero_alloc);
     16 }
     17