From 9adb032e9c5941f4fac941bcda234e86b3e4e95a Mon Sep 17 00:00:00 2001 From: Daan Leijen Date: Fri, 23 Dec 2022 13:04:53 -0800 Subject: [PATCH] test non-default heap --- test/main-override-static.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/main-override-static.c b/test/main-override-static.c index fcdea4d3..bf1cc416 100644 --- a/test/main-override-static.c +++ b/test/main-override-static.c @@ -42,6 +42,9 @@ int main() { char* s = strdup("hello\n"); free(p2); + mi_heap_t* h = mi_heap_new(); + mi_heap_set_default(h); + p2 = malloc(16); p1 = realloc(p1, 32); free(p1); @@ -58,6 +61,7 @@ int main() { //mi_stats_print(NULL); // test_process_info(); + return 0; }