aboutsummaryrefslogtreecommitdiffstats
path: root/test/Verifier/2009-05-29-InvokeResult3.ll
blob: 050de4669d3500bf445c36bbf6fedaec96932feb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
; RUN: not llvm-as < %s >& /dev/null

declare i32 @v()

define i32 @h() {
e:
	%s = invoke i32 @v()
			to label %c unwind label %u		; <i32> [#uses=2]

c:		; preds = %e
	br label %d

d:		; preds = %u, %c
	%p = phi i32 [ %s, %c ], [ %s, %u ]		; <i32> [#uses=1]
	ret i32 %p

u:		; preds = %e
	br label %d
}