[PowerPC] Recommit r314244 with refactoring and off by default
[llvm-core.git] / test / CodeGen / X86 / inconsistent_landingpad.ll
blob495e999c4a955228deddc860a7a9035c137654a2
1 ; RUN: not llvm-as -disable-output <%s 2>&1 | FileCheck %s
3 define void @test() personality i32 (...)* @dummy_personality {
4 ; CHECK: The landingpad instruction should have a consistent result type inside a function
5 entry:
6   invoke void @dummy1()
7           to label %next unwind label %unwind1
9 unwind1:
10   %lp1 = landingpad token
11             cleanup
12   br label %return
14 next:
15   invoke void @dummy2()
16           to label %return unwind label %unwind2
18 unwind2:
19   %lp2 = landingpad { i8*, i32 }
20             cleanup
21   br label %return
23 return:
24   ret void
27 declare void @dummy1()
28 declare void @dummy2()
30 declare i32 @dummy_personality(...)