summaryrefslogtreecommitdiff
path: root/test/Transforms/SimplifyCFG/2003-08-05-MishandleInvoke.ll
blob: 25deb3b36298092c05c39db1f9a55a06fda971fb (plain)
1
2
3
4
5
6
7
8
9
10
; Do not remove the invoke!
;
; RUN: as < %s | opt -simplifycfg | dis | grep invoke

int %test() {
	invoke int %test() to label %Ret except label %Ret
Ret:
	%A = add int 0, 1
	ret int %A
}