aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/ADCE/dce_pure_invoke.ll
blob: 9604defb3bb6e23f20252131c97119ee8829c3bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: llvm-upgrade < %s | llvm-as | opt -adce | llvm-dis | not grep null

declare int %strlen(sbyte*)

int %test() {
	;; Dead call should be deleted!
	invoke int %strlen(sbyte *null) to label %Cont unwind label %Other
Cont:
	ret int 0
Other:
	ret int 1
}