summaryrefslogtreecommitdiff
path: root/test/main-override-static.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/main-override-static.c')
-rw-r--r--test/main-override-static.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/main-override-static.c b/test/main-override-static.c
index a5088d3..adc07ae 100644
--- a/test/main-override-static.c
+++ b/test/main-override-static.c
@@ -7,6 +7,7 @@
#include <mimalloc.h>
#include <mimalloc-override.h> // redefines malloc etc.
+
static void double_free1();
static void double_free2();
static void corrupt_free();
@@ -19,7 +20,6 @@ static void negative_stat(void);
static void alloc_huge(void);
static void test_heap_walk(void);
-
int main() {
mi_version();
mi_stats_reset();
@@ -32,8 +32,8 @@ int main() {
// invalid_free();
// test_reserved();
// negative_stat();
- test_heap_walk();
// alloc_huge();
+ test_heap_walk();
void* p1 = malloc(78);
void* p2 = malloc(24);
@@ -47,7 +47,7 @@ int main() {
free(p1);
free(p2);
free(s);
-
+
/* now test if override worked by allocating/freeing across the api's*/
//p1 = mi_malloc(32);
//free(p1);
@@ -383,4 +383,3 @@ static void mi_bins(void) {
}
}
#endif
-