llvm.org GIT mirror llvm / 9727555 test / Transforms / SimplifyCFG / 2003-08-05-MishandleInvoke.ll
9727555

Tree @9727555 (Download .tar.gz)

2003-08-05-MishandleInvoke.ll @9727555raw · history · blame

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