31 lines · plain
1; RUN: not llvm-as -disable-output < %s 2>&1 | FileCheck %s2 3define void @test() personality ptr @dummy_personality {4; CHECK: The landingpad instruction should have a consistent result type inside a function5entry:6 invoke void @dummy1()7 to label %next unwind label %unwind18 9unwind1:10 %lp1 = landingpad token11 cleanup12 br label %return13 14next:15 invoke void @dummy2()16 to label %return unwind label %unwind217 18unwind2:19 %lp2 = landingpad { ptr, i32 }20 cleanup21 br label %return22 23return:24 ret void25}26 27declare void @dummy1()28declare void @dummy2()29 30declare i32 @dummy_personality(...)31