add huge allocation test (see #544 by @Tiran)

This commit is contained in:
daan 2022-02-10 11:46:28 -08:00
parent f2bfaa74fe
commit ccbc8ae0bb
2 changed files with 5 additions and 1 deletions

View file

@ -72,6 +72,10 @@ int main(void) {
CHECK_BODY("calloc0",{
result = (mi_usable_size(mi_calloc(0,1000)) <= 16);
});
CHECK_BODY("malloc-large",{ // see PR #544.
void* p = mi_malloc(67108872);
mi_free(p);
});
// ---------------------------------------------------
// Extended