Fix broken test case.

EXPECT_EQ takes two arguments, not a single expression that evaluates to bool.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360969 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Richard Trieu 2019-05-17 01:17:32 +00:00
parent 3daa450af0
commit d01ffcdc9c

View File

@ -87,8 +87,8 @@ TEST_F(PointerUnionTest, ManyElements) {
EXPECT_FALSE(a.is<Aligned<5>*>());
EXPECT_FALSE(a.is<Aligned<6>*>());
EXPECT_FALSE(a.is<Aligned<7>*>());
EXPECT_EQ(a.dyn_cast<Aligned<0>*>() == &a0);
EXPECT_EQ(*a.getAddrOfPtr1() == &a0);
EXPECT_EQ(a.dyn_cast<Aligned<0>*>(), &a0);
EXPECT_EQ(*a.getAddrOfPtr1(), &a0);
a = &a7;
EXPECT_FALSE(a.is<Aligned<0>*>());
@ -99,7 +99,7 @@ TEST_F(PointerUnionTest, ManyElements) {
EXPECT_FALSE(a.is<Aligned<5>*>());
EXPECT_FALSE(a.is<Aligned<6>*>());
EXPECT_TRUE(a.is<Aligned<7>*>());
EXPECT_EQ(a.dyn_cast<Aligned<7>*>() == &a7);
EXPECT_EQ(a.dyn_cast<Aligned<7>*>(), &a7);
EXPECT_TRUE(a == PU8(&a7));
EXPECT_TRUE(a != PU8(&a0));