aboutsummaryrefslogtreecommitdiff
path: root/utils/unittest
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-07-12 18:17:47 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-07-12 18:17:47 +0000
commita70282dcfac1788f94ff4596d2a893a36d3a95f6 (patch)
tree431f1c068ef2585c1d3ae820f3d6f086257ceee5 /utils/unittest
parented42f1e58f1a7a83bdbb4429c716424a1c1583ee (diff)
Silence a warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108169 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/unittest')
-rw-r--r--utils/unittest/googletest/gtest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/unittest/googletest/gtest.cc b/utils/unittest/googletest/gtest.cc
index 74427af361..aa2d5bb925 100644
--- a/utils/unittest/googletest/gtest.cc
+++ b/utils/unittest/googletest/gtest.cc
@@ -3602,7 +3602,7 @@ void UnitTest::AddTestPartResult(TestPartResult::Type result_type,
// the --gtest_catch_exceptions flags are specified.
DebugBreak();
#else
- *static_cast<int*>(NULL) = 1;
+ abort();
#endif // GTEST_OS_WINDOWS
} else if (GTEST_FLAG(throw_on_failure)) {
#if GTEST_HAS_EXCEPTIONS