ensure C++ compilation on windows

This commit is contained in:
daan 2019-07-22 10:27:14 -07:00
parent 598ed19c61
commit 66b8c37ab3
5 changed files with 16 additions and 10 deletions

View file

@ -23,14 +23,14 @@ public:
int main() {
mi_version();
mi_stats_reset(); // ignore earlier allocations
atexit(free_p);
void* p1 = malloc(78);
void* p2 = mi_malloc_aligned(16,24);
free(p1);
p1 = malloc(8);
char* s = mi_strdup("hello\n");
mi_free(p2);
free(p2);
p2 = malloc(16);
p1 = realloc(p1, 32);
free(p1);
@ -39,7 +39,7 @@ int main() {
Test* t = new Test(42);
delete t;
t = new (std::nothrow) Test(42);
delete t;
delete t;
return 0;
}