1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-03-04 21:31:03 +00:00
2003-09-16 15:29:54 +00:00

20 lines
493 B
LLVM

; This testcase checks to see if the simplifycfg pass is converting invoke
; instructions to call instructions if the handler just rethrows the exception.
; If this test is successful, the function should be reduced to 'call; ret'
; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | not egrep 'invoke|br'
declare void %bar()
declare void %llvm.unwind()
int %test() {
invoke void %bar() to label %Ok except label %Rethrow
Ok:
ret int 0
Rethrow:
call void %llvm.unwind()
br label %Ok
}