reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
709 SI->addCase(ConstantInt::get(Int32Ty, 1), BB1.get()); 710 SI->addCase(ConstantInt::get(Int32Ty, 2), BB2.get()); 711 SI->addCase(ConstantInt::get(Int32Ty, 3), BB3.get()); 713 auto CI = SI->case_begin(); 714 ASSERT_NE(CI, SI->case_end()); 724 EXPECT_EQ(SI->case_end(), CI + 3); 728 EXPECT_EQ(3, SI->case_end() - CI); 729 EXPECT_EQ(3, std::distance(CI, SI->case_end())); 731 auto CCI = const_cast<const SwitchInst *>(SI)->case_begin(); 732 SwitchInst::ConstCaseIt CCE = SI->case_end(); 733 ASSERT_NE(CCI, SI->case_end());