Home | History | Annotate | Download | only in X86
      1 ; RUN: not llvm-as -disable-output <%s 2>&1 | FileCheck %s
      2 
      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
      8 
      9 unwind1:
     10   %lp1 = landingpad token
     11             cleanup
     12   br label %return
     13 
     14 next:
     15   invoke void @dummy2()
     16           to label %return unwind label %unwind2
     17 
     18 unwind2:
     19   %lp2 = landingpad { i8*, i32 }
     20             cleanup
     21   br label %return
     22 
     23 return:
     24   ret void
     25 }
     26 
     27 declare void @dummy1()
     28 declare void @dummy2()
     29 
     30 declare i32 @dummy_personality(...)
     31