From a2a4e3edd7c1a22a4abc76e16afbbbcb2e7de56b Mon Sep 17 00:00:00 2001 From: Zephyr Lykos Date: Fri, 11 Oct 2024 15:21:48 +0800 Subject: [PATCH] ctest: fix asan on msvc --- misc/tests/ctest.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc/tests/ctest.h b/misc/tests/ctest.h index 11760acd..342e9d28 100644 --- a/misc/tests/ctest.h +++ b/misc/tests/ctest.h @@ -524,6 +524,8 @@ static void sighandler(int signum) int ctest_main(int argc, const char *argv[]); #ifdef __GNUC__ __attribute__((no_sanitize_address)) +#elif defined _MSC_VER +__declspec(no_sanitize_address) #endif int ctest_main(int argc, const char *argv[]) {