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

12 lines
213 B
LLVM

; Do not remove the invoke!
;
; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg -disable-output
int %test() {
%A = invoke int %test() to label %Ret except label %Ret2
Ret:
ret int %A
Ret2:
ret int undef
}