mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-12 22:28:22 +00:00
813f44a29f
The test case only needs to make sure it does not crash LLVM. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255755 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
528 B
LLVM
22 lines
528 B
LLVM
; 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(...)
|