summaryrefslogtreecommitdiff
path: root/test/Transforms/ADCE/2003-09-10-UnwindInstFail.ll
blob: 72b87bb05d80388c0ac5db58f933c0e0ad79fbe3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
; RUN: llvm-as < %s | opt -adce -disable-output

implementation   ; Functions:

void %test() {
	br bool false, label %then, label %endif

then:
	invoke void null( sbyte* null )
			to label %invoke_cont except label %invoke_catch

invoke_catch:
	unwind

invoke_cont:
	ret void

endif:
	ret void
}