add test for mimalloc override on Windows (issue #981)

This commit is contained in:
daanx 2025-01-06 12:08:15 -08:00
parent 5764845c4d
commit 1711a82756
6 changed files with 419 additions and 7 deletions

11
test/main-override-dep.h Normal file
View file

@ -0,0 +1,11 @@
#pragma once
// Issue #981: test overriding allocation in a DLL that is compiled independent of mimalloc.
// This is imported by the `mimalloc-test-override` project.
#include <string>
class TestAllocInDll
{
public:
__declspec(dllexport) std::string GetString();
};