[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / llvm / test / CodeGen / X86 / token_landingpad.ll
blobc146188c30f7d068bc31b4f287dac718261529ae
1 ; RUN: llc < %s -mtriple=x86_64--
2 ; RUN: llc < %s -mtriple=i686--
4 ; This test verifies that SelectionDAG can handle landingPad of token type and not crash LLVM.
6 define void @test() personality ptr @dummy_personality {
7 entry:
8   invoke void @dummy()
9           to label %return unwind label %unwind
11 unwind:                                           ; preds = %entry
12   %lp = landingpad token
13             cleanup
14   br label %return
16 return:                                           ; preds = %entry
17   ret void
20 declare void @dummy()
22 declare i32 @dummy_personality(...)