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
6define void @test() personality i32 (...)* @dummy_personality {
7entry:
8  invoke void @dummy()
9          to label %return unwind label %unwind
10
11unwind:                                           ; preds = %entry
12  %lp = landingpad token
13            cleanup
14  br label %return
15
16return:                                           ; preds = %entry
17  ret void
18}
19
20declare void @dummy()
21
22declare i32 @dummy_personality(...)
23