summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-17 22:21:55 +0000
committerChris Lattner <sabre@nondot.org>2003-06-17 22:21:55 +0000
commitc0feeb5a0f7a8b14427dfb752ce8a4d8a42ebbca (patch)
tree40bd9ed84ceac94af75f4f295c5ac78bf92bde48 /test
parent08227e4f17f5c7686bc6f0fe5d2c030e2fa05806 (diff)
downloadllvm-c0feeb5a0f7a8b14427dfb752ce8a4d8a42ebbca.tar.gz
llvm-c0feeb5a0f7a8b14427dfb752ce8a4d8a42ebbca.tar.bz2
llvm-c0feeb5a0f7a8b14427dfb752ce8a4d8a42ebbca.tar.xz
Make testcase more interesting, remove absolute path from -load line
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6760 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/DeadArgElim/basictest.ll15
1 files changed, 14 insertions, 1 deletions
diff --git a/test/Transforms/DeadArgElim/basictest.ll b/test/Transforms/DeadArgElim/basictest.ll
index 8d70f53bb8..77701f7361 100644
--- a/test/Transforms/DeadArgElim/basictest.ll
+++ b/test/Transforms/DeadArgElim/basictest.ll
@@ -1,4 +1,4 @@
-; RUN: if as < %s | opt -load ~/llvm/lib/Debug/libhello.so -deadargelim | dis | grep DEADARG
+; RUN: if as < %s | opt -deadargelim | dis | grep DEADARG
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi
@@ -25,3 +25,16 @@ internal void %evenhardertest(int %DEADARG3) {
ret void
}
+internal void %needarg(int %TEST) {
+ call int %needarg2(int %TEST)
+ ret void
+}
+
+internal int %needarg2(int %TEST) {
+ ret int %TEST
+}
+
+internal void %needarg3(int %TEST3) {
+ call void %needarg(int %TEST3)
+ ret void
+}