blob: 608c6554129a41f3054dc4fbbf0d0a9a7238580e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
; RUN: llvm-as < %s | 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
}
|