mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-01 07:10:37 +00:00
Test that a landingpad gets the name provided when it was created (see commit
170318). llvm-svn: 170886
This commit is contained in:
parent
ea2d72253e
commit
b535136495
@ -99,6 +99,13 @@ TEST_F(IRBuilderTest, CreateCondBr) {
|
||||
EXPECT_EQ(Weights, TI->getMetadata(LLVMContext::MD_prof));
|
||||
}
|
||||
|
||||
TEST_F(IRBuilderTest, LandingPadName) {
|
||||
IRBuilder<> Builder(BB);
|
||||
LandingPadInst *LP = Builder.CreateLandingPad(Builder.getInt32Ty(),
|
||||
Builder.getInt32(0), 0, "LP");
|
||||
EXPECT_EQ(LP->getName(), "LP");
|
||||
}
|
||||
|
||||
TEST_F(IRBuilderTest, GetIntTy) {
|
||||
IRBuilder<> Builder(BB);
|
||||
IntegerType *Ty1 = Builder.getInt1Ty();
|
||||
|
Loading…
Reference in New Issue
Block a user