llvm-project/llvm/test/Transforms/SimplifyCFG/2003-08-05-MishandleInvoke.ll

11 lines
214 B
LLVM
Raw Normal View History

; 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
}