diff --git a/compiler-rt/test/asan/TestCases/Windows/dll_control_c.cpp b/compiler-rt/test/asan/TestCases/Windows/dll_control_c.cpp index e30276325dbd..f7c81e0065e6 100644 --- a/compiler-rt/test/asan/TestCases/Windows/dll_control_c.cpp +++ b/compiler-rt/test/asan/TestCases/Windows/dll_control_c.cpp @@ -12,7 +12,7 @@ static void __declspec(noinline) CrashOnProcessDetach() { printf("CrashOnProcessDetach\n"); fflush(stdout); - *static_cast(0) = 0x356; + __builtin_trap(); } bool g_is_child = false;