Fixed test.

This commit is contained in:
Matthew Parkinson
2020-02-26 20:39:31 +00:00
parent 9f53ec0ef8
commit 136dd23932

View File

@@ -1,3 +1,4 @@
#include <test/setup.h>
#define SNMALLOC_EXTERNAL_THREAD_ALLOC
#include <mem/globalalloc.h>
@@ -19,10 +20,12 @@ public:
}
};
#include <override/malloc.cc>
#include <snmalloc.h>
int main()
{
setup();
MemoryProviderStateMixin<DefaultPal> mp;
// 28 is large enough to produce a nested allocator.
@@ -35,6 +38,6 @@ int main()
{
auto r1 = a->alloc(100);
free(r1);
a->dealloc(r1);
}
}