MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / test_heap1

Function test_heap1

3rd/mimalloc-2.0.9/test/test-api.c:288–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286// ---------------------------------------------------
287
288bool test_heap1() {
289 mi_heap_t* heap = mi_heap_new();
290 int* p1 = mi_heap_malloc_tp(heap,int);
291 int* p2 = mi_heap_malloc_tp(heap,int);
292 *p1 = *p2 = 43;
293 mi_heap_destroy(heap);
294 return true;
295}
296
297bool test_heap2() {
298 mi_heap_t* heap = mi_heap_new();

Callers 1

mainFunction · 0.85

Calls 2

mi_heap_newFunction · 0.85
mi_heap_destroyFunction · 0.85

Tested by

no test coverage detected