diff options
Diffstat (limited to 'compiler-rt/test/asan/TestCases/Windows/dll_heap_allocation.cpp')
-rw-r--r-- | compiler-rt/test/asan/TestCases/Windows/dll_heap_allocation.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler-rt/test/asan/TestCases/Windows/dll_heap_allocation.cpp b/compiler-rt/test/asan/TestCases/Windows/dll_heap_allocation.cpp index 40e48335e854..b8c2c1a24d4c 100644 --- a/compiler-rt/test/asan/TestCases/Windows/dll_heap_allocation.cpp +++ b/compiler-rt/test/asan/TestCases/Windows/dll_heap_allocation.cpp @@ -1,7 +1,6 @@ -// UNSUPPORTED: target={{.*-windows-gnu}} - -// RUN: %clang_cl -LD %s -Fe%t.dll -DHEAP_LIBRARY -MD -// RUN: %clang_cl %s %t.lib -Fe%t -fsanitize=address -MT +// RUN: %clang_cl %LD %s %Fe%t.dll -DHEAP_LIBRARY %MD \ +// RUN: %if target={{.*-windows-gnu}} %{ -Wl,--out-implib,%t.lib %} +// RUN: %clang_cl %s %t.lib %Fe%t -fsanitize=address %MT // RUN: %run %t 2>&1 | FileCheck %s // Check that ASan does not fail when releasing allocations that occurred within @@ -18,6 +17,7 @@ BOOL WINAPI DllMain(PVOID h, DWORD reason, PVOID reserved) { #else +#include <cstdio> #include <memory> extern std::unique_ptr<int> __declspec(dllimport) myglobal; int main(int argc, char **argv) { |