summaryrefslogtreecommitdiff
path: root/test/Linker
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2013-08-29 03:02:30 +0000
committerDaniel Dunbar <daniel@zuster.org>2013-08-29 03:02:30 +0000
commitb1975a807d2f83bcd79a47aa23b3a28460a4142b (patch)
tree69e7c3c004e294d6533d3c2a0c25a0727e25ef54 /test/Linker
parentcb4bfb340941186a0e326e4b00a88a50a86b7ff0 (diff)
downloadllvm-b1975a807d2f83bcd79a47aa23b3a28460a4142b.tar.gz
llvm-b1975a807d2f83bcd79a47aa23b3a28460a4142b.tar.bz2
llvm-b1975a807d2f83bcd79a47aa23b3a28460a4142b.tar.xz
[tests] Use multiple statements instead of 'echo -e', which is not part of BSD echo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189560 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Linker')
-rw-r--r--test/Linker/transitive-lazy-link.ll7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/Linker/transitive-lazy-link.ll b/test/Linker/transitive-lazy-link.ll
index 32b9d219ae..c1cacae5a9 100644
--- a/test/Linker/transitive-lazy-link.ll
+++ b/test/Linker/transitive-lazy-link.ll
@@ -1,6 +1,11 @@
; @f and @g are lazily linked. @f requires @g - ensure @g is correctly linked.
-; RUN: echo -e "declare i32 @f(i32)\ndefine i32 @h(i32 %x) {\n%1 = call i32 @f(i32 %x)\nret i32 %1\n}" | llvm-as >%t.1.bc
+; RUN: echo "declare i32 @f(i32)" > %t.1.ll
+; RUN: echo "define i32 @h(i32 %x) {" >> %t.1.ll
+; RUN: echo " %1 = call i32 @f(i32 %x)" >> %t.1.ll
+; RUN: echo " ret i32 %1" >> %t.1.ll
+; RUN: echo "}" >> %t.1.ll
+; RUN: llvm-as < %t.1.ll > %t.1.bc
; RUN: llvm-as < %s > %t.2.bc
; RUN: llvm-link %t.1.bc %t.2.bc