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