reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
714 ASSERT_NE(CI, SI->case_end()); 715 EXPECT_EQ(1, CI->getCaseValue()->getSExtValue()); 716 EXPECT_EQ(BB1.get(), CI->getCaseSuccessor()); 717 EXPECT_EQ(2, (CI + 1)->getCaseValue()->getSExtValue()); 718 EXPECT_EQ(BB2.get(), (CI + 1)->getCaseSuccessor()); 719 EXPECT_EQ(3, (CI + 2)->getCaseValue()->getSExtValue()); 720 EXPECT_EQ(BB3.get(), (CI + 2)->getCaseSuccessor()); 721 EXPECT_EQ(CI + 1, std::next(CI)); 721 EXPECT_EQ(CI + 1, std::next(CI)); 722 EXPECT_EQ(CI + 2, std::next(CI, 2)); 722 EXPECT_EQ(CI + 2, std::next(CI, 2)); 723 EXPECT_EQ(CI + 3, std::next(CI, 3)); 723 EXPECT_EQ(CI + 3, std::next(CI, 3)); 724 EXPECT_EQ(SI->case_end(), CI + 3); 725 EXPECT_EQ(0, CI - CI); 725 EXPECT_EQ(0, CI - CI); 726 EXPECT_EQ(1, (CI + 1) - CI); 726 EXPECT_EQ(1, (CI + 1) - CI); 727 EXPECT_EQ(2, (CI + 2) - CI); 727 EXPECT_EQ(2, (CI + 2) - CI); 728 EXPECT_EQ(3, SI->case_end() - CI); 729 EXPECT_EQ(3, std::distance(CI, SI->case_end()));