mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
1ce9e00f8b
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49970 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
328 B
LLVM
18 lines
328 B
LLVM
; RUN: llvm-as < %s | llc -enable-correct-eh-support
|
|
|
|
define i32 @test() {
|
|
unwind
|
|
}
|
|
|
|
define i32 @main() {
|
|
%X = invoke i32 @test( )
|
|
to label %cont unwind label %EH ; <i32> [#uses=0]
|
|
|
|
cont: ; preds = %0
|
|
ret i32 1
|
|
|
|
EH: ; preds = %0
|
|
ret i32 0
|
|
}
|
|
|