summaryrefslogtreecommitdiff
path: root/test/Transforms/SimplifyCFG/2003-08-05-InvokeCrash.ll
blob: 811fe50b4c745651790c8885f36c4626e5323d4f (plain)
1
2
3
4
5
6
7
8
9
10
11
; 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
}