Replace __builtin_trap with __builtin_debugtrap (Fixes #4786)

This commit is contained in:
shoaibkhan-sde 2025-12-09 19:06:32 +05:30
parent 065127f1e4
commit e95f42f966

View File

@ -5478,7 +5478,7 @@ void UnitTest::AddTestPartResult(TestPartResult::Type result_type,
// with clang/gcc we can achieve the same effect on x86 by invoking int3
asm("int3");
#elif GTEST_HAS_BUILTIN(__builtin_trap)
__builtin_trap();
__builtin_debugtrap();
#elif defined(SIGTRAP)
raise(SIGTRAP);
#else