forked from OSchip/llvm-project
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:
parent
9283f1847c
commit
a9a92653a3
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue