test non-default heap

This commit is contained in:
Daan Leijen 2022-12-23 13:04:53 -08:00
parent e68f2c1479
commit 9adb032e9c

View File

@ -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;
}