Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -mtriple=x86_64--
      2 ; RUN: llc < %s -mtriple=i686--
      3 
      4 ; This test verifies that SelectionDAG can handle landingPad of token type and not crash LLVM.
      5 
      6 define void @test() personality i32 (...)* @dummy_personality {
      7 entry:
      8   invoke void @dummy()
      9           to label %return unwind label %unwind
     10 
     11 unwind:                                           ; preds = %entry
     12   %lp = landingpad token
     13             cleanup
     14   br label %return
     15 
     16 return:                                           ; preds = %entry
     17   ret void
     18 }
     19 
     20 declare void @dummy()
     21 
     22 declare i32 @dummy_personality(...)
     23