This commit is contained in:
Roland Leißa 2018-03-29 16:38:23 +02:00
parent 11855d8ef0
commit d04bf07fad

View File

@ -4550,7 +4550,7 @@ void UnitTest::AddTestPartResult(
// the --gtest_catch_exceptions flags are specified. // the --gtest_catch_exceptions flags are specified.
DebugBreak(); DebugBreak();
#elif (defined(__clang__) || defined(__GNUC__)) && (defined(__x86_64__) || defined(__i386__)) #elif (defined(__clang__) || defined(__GNUC__)) && (defined(__x86_64__) || defined(__i386__))
// with clang/gcc we can acchieve the same effect on x86 by invoking int3 // with clang/gcc we can achieve the same effect on x86 by invoking int3
asm("int3"); asm("int3");
#else #else
// Dereference NULL through a volatile pointer to prevent the compiler // Dereference NULL through a volatile pointer to prevent the compiler