Fix broken test case.

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

llvm-svn: 360969
This commit is contained in:
Richard Trieu 2019-05-17 01:17:32 +00:00
parent 9283f1847c
commit a9a92653a3
1 changed files with 3 additions and 3 deletions

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));