File: | unittests/ADT/APSIntTest.cpp |
Location: | line 157, column 3 |
Description: | Function call argument is an uninitialized value |
1 | //===- llvm/unittest/ADT/APSIntTest.cpp - APSInt unit tests ---------------===// | ||
2 | // | ||
3 | // The LLVM Compiler Infrastructure | ||
4 | // | ||
5 | // This file is distributed under the University of Illinois Open Source | ||
6 | // License. See LICENSE.TXT for details. | ||
7 | // | ||
8 | //===----------------------------------------------------------------------===// | ||
9 | |||
10 | #include "llvm/ADT/APSInt.h" | ||
11 | #include "gtest/gtest.h" | ||
12 | |||
13 | using namespace llvm; | ||
14 | |||
15 | namespace { | ||
16 | |||
17 | TEST(APSIntTest, MoveTest)class APSIntTest_MoveTest_Test : public ::testing::Test { public : APSIntTest_MoveTest_Test() {} private: virtual void TestBody (); static ::testing::TestInfo* const test_info_ __attribute__ ((unused)); APSIntTest_MoveTest_Test(APSIntTest_MoveTest_Test const &); void operator=(APSIntTest_MoveTest_Test const & );};::testing::TestInfo* const APSIntTest_MoveTest_Test ::test_info_ = ::testing::internal::MakeAndRegisterTestInfo( "APSIntTest" , "MoveTest", __null, __null, (::testing::internal::GetTestTypeId ()), ::testing::Test::SetUpTestCase, ::testing::Test::TearDownTestCase , new ::testing::internal::TestFactoryImpl< APSIntTest_MoveTest_Test >);void APSIntTest_MoveTest_Test::TestBody() { | ||
18 | APSInt A(32, true); | ||
19 | EXPECT_TRUE(A.isUnsigned())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(A.isUnsigned())) ; else ::testing::internal::AssertHelper(::testing::TestPartResult:: kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 19, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "A.isUnsigned()", "false", "true").c_str()) = ::testing::Message (); | ||
20 | |||
21 | APSInt B(128, false); | ||
22 | A = B; | ||
23 | EXPECT_FALSE(A.isUnsigned())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(!(A.isUnsigned()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult ::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 23, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "A.isUnsigned()", "true", "false").c_str()) = ::testing::Message (); | ||
24 | |||
25 | APSInt C(B); | ||
26 | EXPECT_FALSE(C.isUnsigned())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(!(C.isUnsigned()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult ::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 26, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "C.isUnsigned()", "true", "false").c_str()) = ::testing::Message (); | ||
27 | |||
28 | APInt Wide(256, 0); | ||
29 | const uint64_t *Bits = Wide.getRawData(); | ||
30 | APSInt D(std::move(Wide)); | ||
31 | EXPECT_TRUE(D.isUnsigned())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(D.isUnsigned())) ; else ::testing::internal::AssertHelper(::testing::TestPartResult:: kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 31, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "D.isUnsigned()", "false", "true").c_str()) = ::testing::Message (); | ||
32 | EXPECT_EQ(Bits, D.getRawData())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(Bits)) == 1)>::Compare("Bits" , "D.getRawData()", Bits, D.getRawData()))) ; else ::testing:: internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure , "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 32, gtest_ar.failure_message()) = ::testing::Message(); // Verify that "Wide" was really moved. | ||
33 | |||
34 | A = APSInt(64, true); | ||
35 | EXPECT_TRUE(A.isUnsigned())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(A.isUnsigned())) ; else ::testing::internal::AssertHelper(::testing::TestPartResult:: kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 35, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "A.isUnsigned()", "false", "true").c_str()) = ::testing::Message (); | ||
36 | |||
37 | Wide = APInt(128, 1); | ||
38 | Bits = Wide.getRawData(); | ||
39 | A = std::move(Wide); | ||
40 | EXPECT_TRUE(A.isUnsigned())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(A.isUnsigned())) ; else ::testing::internal::AssertHelper(::testing::TestPartResult:: kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 40, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "A.isUnsigned()", "false", "true").c_str()) = ::testing::Message (); | ||
41 | EXPECT_EQ(Bits, A.getRawData())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(Bits)) == 1)>::Compare("Bits" , "A.getRawData()", Bits, A.getRawData()))) ; else ::testing:: internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure , "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 41, gtest_ar.failure_message()) = ::testing::Message(); // Verify that "Wide" was really moved. | ||
42 | } | ||
43 | |||
44 | TEST(APSIntTest, get)class APSIntTest_get_Test : public ::testing::Test { public: APSIntTest_get_Test () {} private: virtual void TestBody(); static ::testing::TestInfo * const test_info_ __attribute__ ((unused)); APSIntTest_get_Test (APSIntTest_get_Test const &); void operator=(APSIntTest_get_Test const &);};::testing::TestInfo* const APSIntTest_get_Test ::test_info_ = ::testing::internal::MakeAndRegisterTestInfo( "APSIntTest", "get", __null, __null, (::testing::internal::GetTestTypeId ()), ::testing::Test::SetUpTestCase, ::testing::Test::TearDownTestCase , new ::testing::internal::TestFactoryImpl< APSIntTest_get_Test >);void APSIntTest_get_Test::TestBody() { | ||
45 | EXPECT_TRUE(APSInt::get(7).isSigned())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::get(7).isSigned ())) ; else ::testing::internal::AssertHelper(::testing::TestPartResult ::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 45, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::get(7).isSigned()", "false", "true").c_str()) = :: testing::Message(); | ||
46 | EXPECT_EQ(64u, APSInt::get(7).getBitWidth())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(64u)) == 1)>::Compare("64u" , "APSInt::get(7).getBitWidth()", 64u, APSInt::get(7).getBitWidth ()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult ::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 46, gtest_ar.failure_message()) = ::testing::Message(); | ||
47 | EXPECT_EQ(7u, APSInt::get(7).getZExtValue())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(7u)) == 1)>::Compare("7u", "APSInt::get(7).getZExtValue()", 7u, APSInt::get(7).getZExtValue ()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult ::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 47, gtest_ar.failure_message()) = ::testing::Message(); | ||
48 | EXPECT_EQ(7, APSInt::get(7).getSExtValue())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(7)) == 1)>::Compare("7", "APSInt::get(7).getSExtValue()" , 7, APSInt::get(7).getSExtValue()))) ; else ::testing::internal ::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 48, gtest_ar.failure_message()) = ::testing::Message(); | ||
49 | EXPECT_TRUE(APSInt::get(-7).isSigned())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::get(-7).isSigned ())) ; else ::testing::internal::AssertHelper(::testing::TestPartResult ::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 49, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::get(-7).isSigned()", "false", "true").c_str()) = :: testing::Message(); | ||
50 | EXPECT_EQ(64u, APSInt::get(-7).getBitWidth())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(64u)) == 1)>::Compare("64u" , "APSInt::get(-7).getBitWidth()", 64u, APSInt::get(-7).getBitWidth ()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult ::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 50, gtest_ar.failure_message()) = ::testing::Message(); | ||
51 | EXPECT_EQ(-7, APSInt::get(-7).getSExtValue())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(-7)) == 1)>::Compare("-7", "APSInt::get(-7).getSExtValue()", -7, APSInt::get(-7).getSExtValue ()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult ::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 51, gtest_ar.failure_message()) = ::testing::Message(); | ||
52 | EXPECT_EQ(UINT64_C(0) - 7, APSInt::get(-7).getZExtValue())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(0UL - 7)) == 1)>::Compare( "0UL - 7", "APSInt::get(-7).getZExtValue()", 0UL - 7, APSInt:: get(-7).getZExtValue()))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 52, gtest_ar.failure_message()) = ::testing::Message(); | ||
53 | } | ||
54 | |||
55 | TEST(APSIntTest, getUnsigned)class APSIntTest_getUnsigned_Test : public ::testing::Test { public : APSIntTest_getUnsigned_Test() {} private: virtual void TestBody (); static ::testing::TestInfo* const test_info_ __attribute__ ((unused)); APSIntTest_getUnsigned_Test(APSIntTest_getUnsigned_Test const &); void operator=(APSIntTest_getUnsigned_Test const &);};::testing::TestInfo* const APSIntTest_getUnsigned_Test ::test_info_ = ::testing::internal::MakeAndRegisterTestInfo( "APSIntTest", "getUnsigned", __null, __null, (::testing::internal ::GetTestTypeId()), ::testing::Test::SetUpTestCase, ::testing ::Test::TearDownTestCase, new ::testing::internal::TestFactoryImpl < APSIntTest_getUnsigned_Test>);void APSIntTest_getUnsigned_Test ::TestBody() { | ||
56 | EXPECT_TRUE(APSInt::getUnsigned(7).isUnsigned())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::getUnsigned(7 ).isUnsigned())) ; else ::testing::internal::AssertHelper(::testing ::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 56, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::getUnsigned(7).isUnsigned()", "false", "true").c_str ()) = ::testing::Message(); | ||
57 | EXPECT_EQ(64u, APSInt::getUnsigned(7).getBitWidth())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(64u)) == 1)>::Compare("64u" , "APSInt::getUnsigned(7).getBitWidth()", 64u, APSInt::getUnsigned (7).getBitWidth()))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 57, gtest_ar.failure_message()) = ::testing::Message(); | ||
58 | EXPECT_EQ(7u, APSInt::getUnsigned(7).getZExtValue())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(7u)) == 1)>::Compare("7u", "APSInt::getUnsigned(7).getZExtValue()", 7u, APSInt::getUnsigned (7).getZExtValue()))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 58, gtest_ar.failure_message()) = ::testing::Message(); | ||
59 | EXPECT_EQ(7, APSInt::getUnsigned(7).getSExtValue())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(7)) == 1)>::Compare("7", "APSInt::getUnsigned(7).getSExtValue()" , 7, APSInt::getUnsigned(7).getSExtValue()))) ; else ::testing ::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure , "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 59, gtest_ar.failure_message()) = ::testing::Message(); | ||
60 | EXPECT_TRUE(APSInt::getUnsigned(-7).isUnsigned())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::getUnsigned(- 7).isUnsigned())) ; else ::testing::internal::AssertHelper(:: testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 60, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::getUnsigned(-7).isUnsigned()", "false", "true").c_str ()) = ::testing::Message(); | ||
61 | EXPECT_EQ(64u, APSInt::getUnsigned(-7).getBitWidth())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(64u)) == 1)>::Compare("64u" , "APSInt::getUnsigned(-7).getBitWidth()", 64u, APSInt::getUnsigned (-7).getBitWidth()))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 61, gtest_ar.failure_message()) = ::testing::Message(); | ||
62 | EXPECT_EQ(-7, APSInt::getUnsigned(-7).getSExtValue())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(-7)) == 1)>::Compare("-7", "APSInt::getUnsigned(-7).getSExtValue()", -7, APSInt::getUnsigned (-7).getSExtValue()))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 62, gtest_ar.failure_message()) = ::testing::Message(); | ||
63 | EXPECT_EQ(UINT64_C(0) - 7, APSInt::getUnsigned(-7).getZExtValue())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(0UL - 7)) == 1)>::Compare( "0UL - 7", "APSInt::getUnsigned(-7).getZExtValue()", 0UL - 7, APSInt::getUnsigned(-7).getZExtValue()))) ; else ::testing:: internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure , "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 63, gtest_ar.failure_message()) = ::testing::Message(); | ||
64 | } | ||
65 | |||
66 | TEST(APSIntTest, getExtValue)class APSIntTest_getExtValue_Test : public ::testing::Test { public : APSIntTest_getExtValue_Test() {} private: virtual void TestBody (); static ::testing::TestInfo* const test_info_ __attribute__ ((unused)); APSIntTest_getExtValue_Test(APSIntTest_getExtValue_Test const &); void operator=(APSIntTest_getExtValue_Test const &);};::testing::TestInfo* const APSIntTest_getExtValue_Test ::test_info_ = ::testing::internal::MakeAndRegisterTestInfo( "APSIntTest", "getExtValue", __null, __null, (::testing::internal ::GetTestTypeId()), ::testing::Test::SetUpTestCase, ::testing ::Test::TearDownTestCase, new ::testing::internal::TestFactoryImpl < APSIntTest_getExtValue_Test>);void APSIntTest_getExtValue_Test ::TestBody() { | ||
67 | EXPECT_TRUE(APSInt(APInt(3, 7), true).isUnsigned())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt(APInt(3, 7), true ).isUnsigned())) ; else ::testing::internal::AssertHelper(::testing ::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 67, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt(APInt(3, 7), true).isUnsigned()", "false", "true"). c_str()) = ::testing::Message(); | ||
68 | EXPECT_TRUE(APSInt(APInt(3, 7), false).isSigned())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt(APInt(3, 7), false ).isSigned())) ; else ::testing::internal::AssertHelper(::testing ::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 68, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt(APInt(3, 7), false).isSigned()", "false", "true").c_str ()) = ::testing::Message(); | ||
69 | EXPECT_TRUE(APSInt(APInt(4, 7), true).isUnsigned())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt(APInt(4, 7), true ).isUnsigned())) ; else ::testing::internal::AssertHelper(::testing ::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 69, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt(APInt(4, 7), true).isUnsigned()", "false", "true"). c_str()) = ::testing::Message(); | ||
70 | EXPECT_TRUE(APSInt(APInt(4, 7), false).isSigned())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt(APInt(4, 7), false ).isSigned())) ; else ::testing::internal::AssertHelper(::testing ::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 70, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt(APInt(4, 7), false).isSigned()", "false", "true").c_str ()) = ::testing::Message(); | ||
71 | EXPECT_TRUE(APSInt(APInt(4, -7), true).isUnsigned())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt(APInt(4, -7), true ).isUnsigned())) ; else ::testing::internal::AssertHelper(::testing ::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 71, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt(APInt(4, -7), true).isUnsigned()", "false", "true") .c_str()) = ::testing::Message(); | ||
72 | EXPECT_TRUE(APSInt(APInt(4, -7), false).isSigned())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt(APInt(4, -7), false ).isSigned())) ; else ::testing::internal::AssertHelper(::testing ::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 72, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt(APInt(4, -7), false).isSigned()", "false", "true"). c_str()) = ::testing::Message(); | ||
73 | EXPECT_EQ(7, APSInt(APInt(3, 7), true).getExtValue())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(7)) == 1)>::Compare("7", "APSInt(APInt(3, 7), true).getExtValue()" , 7, APSInt(APInt(3, 7), true).getExtValue()))) ; else ::testing ::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure , "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 73, gtest_ar.failure_message()) = ::testing::Message(); | ||
74 | EXPECT_EQ(-1, APSInt(APInt(3, 7), false).getExtValue())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(-1)) == 1)>::Compare("-1", "APSInt(APInt(3, 7), false).getExtValue()", -1, APSInt(APInt (3, 7), false).getExtValue()))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 74, gtest_ar.failure_message()) = ::testing::Message(); | ||
75 | EXPECT_EQ(7, APSInt(APInt(4, 7), true).getExtValue())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(7)) == 1)>::Compare("7", "APSInt(APInt(4, 7), true).getExtValue()" , 7, APSInt(APInt(4, 7), true).getExtValue()))) ; else ::testing ::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure , "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 75, gtest_ar.failure_message()) = ::testing::Message(); | ||
76 | EXPECT_EQ(7, APSInt(APInt(4, 7), false).getExtValue())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(7)) == 1)>::Compare("7", "APSInt(APInt(4, 7), false).getExtValue()" , 7, APSInt(APInt(4, 7), false).getExtValue()))) ; else ::testing ::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure , "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 76, gtest_ar.failure_message()) = ::testing::Message(); | ||
77 | EXPECT_EQ(9, APSInt(APInt(4, -7), true).getExtValue())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(9)) == 1)>::Compare("9", "APSInt(APInt(4, -7), true).getExtValue()" , 9, APSInt(APInt(4, -7), true).getExtValue()))) ; else ::testing ::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure , "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 77, gtest_ar.failure_message()) = ::testing::Message(); | ||
78 | EXPECT_EQ(-7, APSInt(APInt(4, -7), false).getExtValue())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(-7)) == 1)>::Compare("-7", "APSInt(APInt(4, -7), false).getExtValue()", -7, APSInt(APInt (4, -7), false).getExtValue()))) ; else ::testing::internal:: AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 78, gtest_ar.failure_message()) = ::testing::Message(); | ||
79 | } | ||
80 | |||
81 | TEST(APSIntTest, compareValues)class APSIntTest_compareValues_Test : public ::testing::Test { public: APSIntTest_compareValues_Test() {} private: virtual void TestBody(); static ::testing::TestInfo* const test_info_ __attribute__ ((unused)); APSIntTest_compareValues_Test(APSIntTest_compareValues_Test const &); void operator=(APSIntTest_compareValues_Test const &);};::testing::TestInfo* const APSIntTest_compareValues_Test ::test_info_ = ::testing::internal::MakeAndRegisterTestInfo( "APSIntTest", "compareValues", __null, __null, (::testing::internal ::GetTestTypeId()), ::testing::Test::SetUpTestCase, ::testing ::Test::TearDownTestCase, new ::testing::internal::TestFactoryImpl < APSIntTest_compareValues_Test>);void APSIntTest_compareValues_Test ::TestBody() { | ||
82 | auto U = [](uint64_t V) { return APSInt::getUnsigned(V); }; | ||
83 | auto S = [](int64_t V) { return APSInt::get(V); }; | ||
84 | |||
85 | // Bit-width matches and is-signed. | ||
86 | EXPECT_TRUE(APSInt::compareValues(S(7), S(8)) < 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (S(7), S(8)) < 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 86, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(S(7), S(8)) < 0", "false", "true" ).c_str()) = ::testing::Message(); | ||
87 | EXPECT_TRUE(APSInt::compareValues(S(8), S(7)) > 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (S(8), S(7)) > 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 87, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(S(8), S(7)) > 0", "false", "true" ).c_str()) = ::testing::Message(); | ||
88 | EXPECT_TRUE(APSInt::compareValues(S(7), S(7)) == 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (S(7), S(7)) == 0)) ; else ::testing::internal::AssertHelper( ::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 88, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(S(7), S(7)) == 0", "false", "true"). c_str()) = ::testing::Message(); | ||
89 | EXPECT_TRUE(APSInt::compareValues(S(-7), S(8)) < 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (S(-7), S(8)) < 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 89, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(S(-7), S(8)) < 0", "false", "true" ).c_str()) = ::testing::Message(); | ||
90 | EXPECT_TRUE(APSInt::compareValues(S(8), S(-7)) > 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (S(8), S(-7)) > 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 90, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(S(8), S(-7)) > 0", "false", "true" ).c_str()) = ::testing::Message(); | ||
91 | EXPECT_TRUE(APSInt::compareValues(S(-7), S(-7)) == 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (S(-7), S(-7)) == 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 91, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(S(-7), S(-7)) == 0", "false", "true" ).c_str()) = ::testing::Message(); | ||
92 | EXPECT_TRUE(APSInt::compareValues(S(-7), S(-8)) > 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (S(-7), S(-8)) > 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 92, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(S(-7), S(-8)) > 0", "false", "true" ).c_str()) = ::testing::Message(); | ||
93 | EXPECT_TRUE(APSInt::compareValues(S(-8), S(-7)) < 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (S(-8), S(-7)) < 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 93, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(S(-8), S(-7)) < 0", "false", "true" ).c_str()) = ::testing::Message(); | ||
94 | EXPECT_TRUE(APSInt::compareValues(S(-7), S(-7)) == 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (S(-7), S(-7)) == 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 94, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(S(-7), S(-7)) == 0", "false", "true" ).c_str()) = ::testing::Message(); | ||
95 | |||
96 | // Bit-width matches and not is-signed. | ||
97 | EXPECT_TRUE(APSInt::compareValues(U(7), U(8)) < 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (U(7), U(8)) < 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 97, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(U(7), U(8)) < 0", "false", "true" ).c_str()) = ::testing::Message(); | ||
98 | EXPECT_TRUE(APSInt::compareValues(U(8), U(7)) > 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (U(8), U(7)) > 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 98, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(U(8), U(7)) > 0", "false", "true" ).c_str()) = ::testing::Message(); | ||
99 | EXPECT_TRUE(APSInt::compareValues(U(7), U(7)) == 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (U(7), U(7)) == 0)) ; else ::testing::internal::AssertHelper( ::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 99, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(U(7), U(7)) == 0", "false", "true"). c_str()) = ::testing::Message(); | ||
100 | |||
101 | // Bit-width matches and mixed signs. | ||
102 | EXPECT_TRUE(APSInt::compareValues(U(7), S(8)) < 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (U(7), S(8)) < 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 102, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(U(7), S(8)) < 0", "false", "true" ).c_str()) = ::testing::Message(); | ||
103 | EXPECT_TRUE(APSInt::compareValues(U(8), S(7)) > 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (U(8), S(7)) > 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 103, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(U(8), S(7)) > 0", "false", "true" ).c_str()) = ::testing::Message(); | ||
104 | EXPECT_TRUE(APSInt::compareValues(U(7), S(7)) == 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (U(7), S(7)) == 0)) ; else ::testing::internal::AssertHelper( ::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 104, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(U(7), S(7)) == 0", "false", "true"). c_str()) = ::testing::Message(); | ||
105 | EXPECT_TRUE(APSInt::compareValues(U(8), S(-7)) > 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (U(8), S(-7)) > 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 105, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(U(8), S(-7)) > 0", "false", "true" ).c_str()) = ::testing::Message(); | ||
106 | |||
107 | // Bit-width mismatch and is-signed. | ||
108 | EXPECT_TRUE(APSInt::compareValues(S(7).trunc(32), S(8)) < 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (S(7).trunc(32), S(8)) < 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 108, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(S(7).trunc(32), S(8)) < 0", "false" , "true").c_str()) = ::testing::Message(); | ||
109 | EXPECT_TRUE(APSInt::compareValues(S(8).trunc(32), S(7)) > 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (S(8).trunc(32), S(7)) > 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 109, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(S(8).trunc(32), S(7)) > 0", "false" , "true").c_str()) = ::testing::Message(); | ||
110 | EXPECT_TRUE(APSInt::compareValues(S(7).trunc(32), S(7)) == 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (S(7).trunc(32), S(7)) == 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 110, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(S(7).trunc(32), S(7)) == 0", "false" , "true").c_str()) = ::testing::Message(); | ||
111 | EXPECT_TRUE(APSInt::compareValues(S(-7).trunc(32), S(8)) < 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (S(-7).trunc(32), S(8)) < 0)) ; else ::testing::internal:: AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 111, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(S(-7).trunc(32), S(8)) < 0", "false" , "true").c_str()) = ::testing::Message(); | ||
112 | EXPECT_TRUE(APSInt::compareValues(S(8).trunc(32), S(-7)) > 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (S(8).trunc(32), S(-7)) > 0)) ; else ::testing::internal:: AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 112, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(S(8).trunc(32), S(-7)) > 0", "false" , "true").c_str()) = ::testing::Message(); | ||
113 | EXPECT_TRUE(APSInt::compareValues(S(-7).trunc(32), S(-7)) == 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (S(-7).trunc(32), S(-7)) == 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 113, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(S(-7).trunc(32), S(-7)) == 0", "false" , "true").c_str()) = ::testing::Message(); | ||
114 | EXPECT_TRUE(APSInt::compareValues(S(-7).trunc(32), S(-8)) > 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (S(-7).trunc(32), S(-8)) > 0)) ; else ::testing::internal:: AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 114, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(S(-7).trunc(32), S(-8)) > 0", "false" , "true").c_str()) = ::testing::Message(); | ||
115 | EXPECT_TRUE(APSInt::compareValues(S(-8).trunc(32), S(-7)) < 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (S(-8).trunc(32), S(-7)) < 0)) ; else ::testing::internal:: AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 115, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(S(-8).trunc(32), S(-7)) < 0", "false" , "true").c_str()) = ::testing::Message(); | ||
116 | EXPECT_TRUE(APSInt::compareValues(S(-7).trunc(32), S(-7)) == 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (S(-7).trunc(32), S(-7)) == 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 116, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(S(-7).trunc(32), S(-7)) == 0", "false" , "true").c_str()) = ::testing::Message(); | ||
117 | EXPECT_TRUE(APSInt::compareValues(S(7), S(8).trunc(32)) < 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (S(7), S(8).trunc(32)) < 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 117, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(S(7), S(8).trunc(32)) < 0", "false" , "true").c_str()) = ::testing::Message(); | ||
118 | EXPECT_TRUE(APSInt::compareValues(S(8), S(7).trunc(32)) > 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (S(8), S(7).trunc(32)) > 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 118, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(S(8), S(7).trunc(32)) > 0", "false" , "true").c_str()) = ::testing::Message(); | ||
119 | EXPECT_TRUE(APSInt::compareValues(S(7), S(7).trunc(32)) == 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (S(7), S(7).trunc(32)) == 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 119, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(S(7), S(7).trunc(32)) == 0", "false" , "true").c_str()) = ::testing::Message(); | ||
120 | EXPECT_TRUE(APSInt::compareValues(S(-7), S(8).trunc(32)) < 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (S(-7), S(8).trunc(32)) < 0)) ; else ::testing::internal:: AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 120, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(S(-7), S(8).trunc(32)) < 0", "false" , "true").c_str()) = ::testing::Message(); | ||
121 | EXPECT_TRUE(APSInt::compareValues(S(8), S(-7).trunc(32)) > 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (S(8), S(-7).trunc(32)) > 0)) ; else ::testing::internal:: AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 121, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(S(8), S(-7).trunc(32)) > 0", "false" , "true").c_str()) = ::testing::Message(); | ||
122 | EXPECT_TRUE(APSInt::compareValues(S(-7), S(-7).trunc(32)) == 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (S(-7), S(-7).trunc(32)) == 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 122, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(S(-7), S(-7).trunc(32)) == 0", "false" , "true").c_str()) = ::testing::Message(); | ||
123 | EXPECT_TRUE(APSInt::compareValues(S(-7), S(-8).trunc(32)) > 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (S(-7), S(-8).trunc(32)) > 0)) ; else ::testing::internal:: AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 123, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(S(-7), S(-8).trunc(32)) > 0", "false" , "true").c_str()) = ::testing::Message(); | ||
124 | EXPECT_TRUE(APSInt::compareValues(S(-8), S(-7).trunc(32)) < 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (S(-8), S(-7).trunc(32)) < 0)) ; else ::testing::internal:: AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 124, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(S(-8), S(-7).trunc(32)) < 0", "false" , "true").c_str()) = ::testing::Message(); | ||
125 | EXPECT_TRUE(APSInt::compareValues(S(-7), S(-7).trunc(32)) == 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (S(-7), S(-7).trunc(32)) == 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 125, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(S(-7), S(-7).trunc(32)) == 0", "false" , "true").c_str()) = ::testing::Message(); | ||
126 | |||
127 | // Bit-width mismatch and not is-signed. | ||
128 | EXPECT_TRUE(APSInt::compareValues(U(7), U(8).trunc(32)) < 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (U(7), U(8).trunc(32)) < 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 128, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(U(7), U(8).trunc(32)) < 0", "false" , "true").c_str()) = ::testing::Message(); | ||
129 | EXPECT_TRUE(APSInt::compareValues(U(8), U(7).trunc(32)) > 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (U(8), U(7).trunc(32)) > 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 129, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(U(8), U(7).trunc(32)) > 0", "false" , "true").c_str()) = ::testing::Message(); | ||
130 | EXPECT_TRUE(APSInt::compareValues(U(7), U(7).trunc(32)) == 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (U(7), U(7).trunc(32)) == 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 130, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(U(7), U(7).trunc(32)) == 0", "false" , "true").c_str()) = ::testing::Message(); | ||
131 | EXPECT_TRUE(APSInt::compareValues(U(7).trunc(32), U(8)) < 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (U(7).trunc(32), U(8)) < 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 131, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(U(7).trunc(32), U(8)) < 0", "false" , "true").c_str()) = ::testing::Message(); | ||
132 | EXPECT_TRUE(APSInt::compareValues(U(8).trunc(32), U(7)) > 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (U(8).trunc(32), U(7)) > 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 132, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(U(8).trunc(32), U(7)) > 0", "false" , "true").c_str()) = ::testing::Message(); | ||
133 | EXPECT_TRUE(APSInt::compareValues(U(7).trunc(32), U(7)) == 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (U(7).trunc(32), U(7)) == 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 133, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(U(7).trunc(32), U(7)) == 0", "false" , "true").c_str()) = ::testing::Message(); | ||
134 | |||
135 | // Bit-width mismatch and mixed signs. | ||
136 | EXPECT_TRUE(APSInt::compareValues(U(7).trunc(32), S(8)) < 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (U(7).trunc(32), S(8)) < 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 136, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(U(7).trunc(32), S(8)) < 0", "false" , "true").c_str()) = ::testing::Message(); | ||
137 | EXPECT_TRUE(APSInt::compareValues(U(8).trunc(32), S(7)) > 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (U(8).trunc(32), S(7)) > 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 137, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(U(8).trunc(32), S(7)) > 0", "false" , "true").c_str()) = ::testing::Message(); | ||
138 | EXPECT_TRUE(APSInt::compareValues(U(7).trunc(32), S(7)) == 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (U(7).trunc(32), S(7)) == 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 138, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(U(7).trunc(32), S(7)) == 0", "false" , "true").c_str()) = ::testing::Message(); | ||
139 | EXPECT_TRUE(APSInt::compareValues(U(8).trunc(32), S(-7)) > 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (U(8).trunc(32), S(-7)) > 0)) ; else ::testing::internal:: AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 139, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(U(8).trunc(32), S(-7)) > 0", "false" , "true").c_str()) = ::testing::Message(); | ||
140 | EXPECT_TRUE(APSInt::compareValues(U(7), S(8).trunc(32)) < 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (U(7), S(8).trunc(32)) < 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 140, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(U(7), S(8).trunc(32)) < 0", "false" , "true").c_str()) = ::testing::Message(); | ||
141 | EXPECT_TRUE(APSInt::compareValues(U(8), S(7).trunc(32)) > 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (U(8), S(7).trunc(32)) > 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 141, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(U(8), S(7).trunc(32)) > 0", "false" , "true").c_str()) = ::testing::Message(); | ||
142 | EXPECT_TRUE(APSInt::compareValues(U(7), S(7).trunc(32)) == 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (U(7), S(7).trunc(32)) == 0)) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 142, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(U(7), S(7).trunc(32)) == 0", "false" , "true").c_str()) = ::testing::Message(); | ||
143 | EXPECT_TRUE(APSInt::compareValues(U(8), S(-7).trunc(32)) > 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(APSInt::compareValues (U(8), S(-7).trunc(32)) > 0)) ; else ::testing::internal:: AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 143, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "APSInt::compareValues(U(8), S(-7).trunc(32)) > 0", "false" , "true").c_str()) = ::testing::Message(); | ||
144 | } | ||
145 | |||
146 | TEST(APSIntTest, FromString)class APSIntTest_FromString_Test : public ::testing::Test { public : APSIntTest_FromString_Test() {} private: virtual void TestBody (); static ::testing::TestInfo* const test_info_ __attribute__ ((unused)); APSIntTest_FromString_Test(APSIntTest_FromString_Test const &); void operator=(APSIntTest_FromString_Test const &);};::testing::TestInfo* const APSIntTest_FromString_Test ::test_info_ = ::testing::internal::MakeAndRegisterTestInfo( "APSIntTest", "FromString", __null, __null, (::testing::internal ::GetTestTypeId()), ::testing::Test::SetUpTestCase, ::testing ::Test::TearDownTestCase, new ::testing::internal::TestFactoryImpl < APSIntTest_FromString_Test>);void APSIntTest_FromString_Test ::TestBody() { | ||
147 | EXPECT_EQ(APSInt("1").getExtValue(), 1)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(APSInt("1").getExtValue())) == 1)>::Compare("APSInt(\"1\").getExtValue()", "1", APSInt("1" ).getExtValue(), 1))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 147, gtest_ar.failure_message()) = ::testing::Message(); | ||
148 | EXPECT_EQ(APSInt("-1").getExtValue(), -1)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(APSInt("-1").getExtValue())) == 1)>::Compare("APSInt(\"-1\").getExtValue()", "-1", APSInt ("-1").getExtValue(), -1))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 148, gtest_ar.failure_message()) = ::testing::Message(); | ||
149 | EXPECT_EQ(APSInt("0").getExtValue(), 0)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(APSInt("0").getExtValue())) == 1)>::Compare("APSInt(\"0\").getExtValue()", "0", APSInt("0" ).getExtValue(), 0))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 149, gtest_ar.failure_message()) = ::testing::Message(); | ||
150 | EXPECT_EQ(APSInt("56789").getExtValue(), 56789)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(APSInt("56789").getExtValue() )) == 1)>::Compare("APSInt(\"56789\").getExtValue()", "56789" , APSInt("56789").getExtValue(), 56789))) ; else ::testing::internal ::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 150, gtest_ar.failure_message()) = ::testing::Message(); | ||
151 | EXPECT_EQ(APSInt("-1234").getExtValue(), -1234)switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(APSInt("-1234").getExtValue() )) == 1)>::Compare("APSInt(\"-1234\").getExtValue()", "-1234" , APSInt("-1234").getExtValue(), -1234))) ; else ::testing::internal ::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 151, gtest_ar.failure_message()) = ::testing::Message(); | ||
152 | } | ||
153 | |||
154 | #if defined(GTEST_HAS_DEATH_TEST1) && !defined(NDEBUG) | ||
155 | |||
156 | TEST(APSIntTest, StringDeath)class APSIntTest_StringDeath_Test : public ::testing::Test { public : APSIntTest_StringDeath_Test() {} private: virtual void TestBody (); static ::testing::TestInfo* const test_info_ __attribute__ ((unused)); APSIntTest_StringDeath_Test(APSIntTest_StringDeath_Test const &); void operator=(APSIntTest_StringDeath_Test const &);};::testing::TestInfo* const APSIntTest_StringDeath_Test ::test_info_ = ::testing::internal::MakeAndRegisterTestInfo( "APSIntTest", "StringDeath", __null, __null, (::testing::internal ::GetTestTypeId()), ::testing::Test::SetUpTestCase, ::testing ::Test::TearDownTestCase, new ::testing::internal::TestFactoryImpl < APSIntTest_StringDeath_Test>);void APSIntTest_StringDeath_Test ::TestBody() { | ||
157 | EXPECT_DEATH(APSInt(""), "Invalid string length")switch (0) case 0: default: if (::testing::internal::AlwaysTrue ()) { const ::testing::internal::RE& gtest_regex = ("Invalid string length" ); ::testing::internal::DeathTest* gtest_dt; if (!::testing:: internal::DeathTest::Create("APSInt(\"\")", >est_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 157, >est_dt)) { goto gtest_label_157; } if (gtest_dt != __null) { ::testing::internal::scoped_ptr< ::testing:: internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt ->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST : if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully (gtest_dt->Wait()))) { goto gtest_label_157; } break; case ::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal ::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing ::internal::AlwaysTrue()) { APSInt(""); }; gtest_dt->Abort (::testing::internal::DeathTest::TEST_DID_NOT_DIE); break; } } } } else gtest_label_157: ::testing::internal::AssertHelper( ::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 157, ::testing::internal::DeathTest::LastMessage()) = ::testing ::Message(); | ||
Within the expansion of the macro 'EXPECT_DEATH':
| |||
158 | EXPECT_DEATH(APSInt("1a"), "Invalid character in digit string")switch (0) case 0: default: if (::testing::internal::AlwaysTrue ()) { const ::testing::internal::RE& gtest_regex = ("Invalid character in digit string" ); ::testing::internal::DeathTest* gtest_dt; if (!::testing:: internal::DeathTest::Create("APSInt(\"1a\")", >est_regex , "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 158, >est_dt)) { goto gtest_label_158; } if (gtest_dt != __null) { ::testing::internal::scoped_ptr< ::testing:: internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt ->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST : if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully (gtest_dt->Wait()))) { goto gtest_label_158; } break; case ::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal ::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing ::internal::AlwaysTrue()) { APSInt("1a"); }; gtest_dt->Abort (::testing::internal::DeathTest::TEST_DID_NOT_DIE); break; } } } } else gtest_label_158: ::testing::internal::AssertHelper( ::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APSIntTest.cpp" , 158, ::testing::internal::DeathTest::LastMessage()) = ::testing ::Message(); | ||
159 | } | ||
160 | |||
161 | #endif | ||
162 | |||
163 | } // end anonymous namespace |