diff options
author | Eli Bendersky <eliben@google.com> | 2014-03-07 21:04:24 +0000 |
---|---|---|
committer | Eli Bendersky <eliben@google.com> | 2014-03-07 21:04:24 +0000 |
commit | 2195ed675a215ee801233e0c76202f4c4da17a44 (patch) | |
tree | 4ea010ffc11230a8b334e053a0e4774a565b2d1c /unittests/ADT | |
parent | 6cadd406ccbf4ea0fa8b7fc31b094eeb3db979fb (diff) | |
download | llvm-2195ed675a215ee801233e0c76202f4c4da17a44.tar.gz llvm-2195ed675a215ee801233e0c76202f4c4da17a44.tar.bz2 llvm-2195ed675a215ee801233e0c76202f4c4da17a44.tar.xz |
Fix EXPECT_* to not produce a compile warning.
EXPECT_TRUE/FALSE is also more idiomatic for booleans than EXPECT_EQ
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203284 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/ADT')
-rw-r--r-- | unittests/ADT/PointerIntPairTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/ADT/PointerIntPairTest.cpp b/unittests/ADT/PointerIntPairTest.cpp index 3da31e7dfe..3c472b2791 100644 --- a/unittests/ADT/PointerIntPairTest.cpp +++ b/unittests/ADT/PointerIntPairTest.cpp @@ -61,11 +61,11 @@ TEST_F(PointerIntPairTest, ManyUnusedBits) { PointerIntPair<Fixnum31, 1, bool, FixnumPointerTraits> pair; EXPECT_EQ((uintptr_t)0, pair.getPointer().Value); - EXPECT_EQ(false, pair.getInt()); + EXPECT_FALSE(pair.getInt()); pair.setPointerAndInt({ 0x7FFFFFFF }, true ); EXPECT_EQ((uintptr_t)0x7FFFFFFF, pair.getPointer().Value); - EXPECT_EQ(true, pair.getInt()); + EXPECT_TRUE(pair.getInt()); EXPECT_EQ(FixnumPointerTraits::NumLowBitsAvailable - 1, PointerLikeTypeTraits<decltype(pair)>::NumLowBitsAvailable); |