llvm-6502/test/Transforms/SimplifyCFG/2003-08-05-MishandleInvoke.ll
2006-12-02 04:23:10 +00:00

11 lines
214 B
LLVM

; Do not remove the invoke!
;
; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis | grep invoke
int %test() {
invoke int %test() to label %Ret except label %Ret
Ret:
%A = add int 0, 1
ret int %A
}