New testcases

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12806 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-04-10 06:52:20 +00:00
parent 94c420da4a
commit dc4736f8e6
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,9 @@
; RUN: llvm-as < %s | opt -adce | llvm-dis | not grep call
declare int %strlen(sbyte*)
void %test() {
;; Dead call should be deleted!
call int %strlen(sbyte *null)
ret void
}

View File

@ -0,0 +1,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
}