llvm.org GIT mirror llvm / d01ffcd
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 Richard Trieu 3 months ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
8686 EXPECT_FALSE(a.is*>());
8787 EXPECT_FALSE(a.is*>());
8888 EXPECT_FALSE(a.is*>());
89 EXPECT_EQ(a.dyn_cast*>() == &a0);
90 EXPECT_EQ(*a.getAddrOfPtr1() == &a0);
89 EXPECT_EQ(a.dyn_cast*>(), &a0);
90 EXPECT_EQ(*a.getAddrOfPtr1(), &a0);
9191
9292 a = &a7;
9393 EXPECT_FALSE(a.is*>());
9898 EXPECT_FALSE(a.is*>());
9999 EXPECT_FALSE(a.is*>());
100100 EXPECT_TRUE(a.is*>());
101 EXPECT_EQ(a.dyn_cast*>() == &a7);
101 EXPECT_EQ(a.dyn_cast*>(), &a7);
102102
103103 EXPECT_TRUE(a == PU8(&a7));
104104 EXPECT_TRUE(a != PU8(&a0));