diff options
Diffstat (limited to 'test/CodeGen/X86/token_landingpad.ll')
| -rw-r--r-- | test/CodeGen/X86/token_landingpad.ll | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/CodeGen/X86/token_landingpad.ll b/test/CodeGen/X86/token_landingpad.ll new file mode 100644 index 0000000000000..087b68bfce8aa --- /dev/null +++ b/test/CodeGen/X86/token_landingpad.ll @@ -0,0 +1,21 @@ +; RUN: llc < %s + +; This test verifies that SelectionDAG can handle landingPad of token type and not crash LLVM. + +define void @test() personality i32 (...)* @dummy_personality { +entry: + invoke void @dummy() + to label %return unwind label %unwind + +unwind: ; preds = %entry + %lp = landingpad token + cleanup + br label %return + +return: ; preds = %entry + ret void +} + +declare void @dummy() + +declare i32 @dummy_personality(...) |
