llvm.org GIT mirror llvm / c0feeb5
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 Chris Lattner 16 years ago
1 changed file(s) with 14 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
None ; RUN: if as < %s | opt -load ~/llvm/lib/Debug/libhello.so -deadargelim | dis | grep DEADARG
0 ; RUN: if as < %s | opt -deadargelim | dis | grep DEADARG
11 ; RUN: then exit 1
22 ; RUN: else exit 0
33 ; RUN: fi
2424 ret void
2525 }
2626
27 internal void %needarg(int %TEST) {
28 call int %needarg2(int %TEST)
29 ret void
30 }
31
32 internal int %needarg2(int %TEST) {
33 ret int %TEST
34 }
35
36 internal void %needarg3(int %TEST3) {
37 call void %needarg(int %TEST3)
38 ret void
39 }