llvm-6502/test/Transforms/SimplifyCFG/2003-08-05-MishandleInvoke.ll
2003-09-16 15:29:54 +00:00

11 lines
199 B
LLVM

; Do not remove the invoke!
;
; RUN: llvm-as < %s | 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
}