Skip to content

Commit

Permalink
[tests] Use multiple statements instead of 'echo -e', which is not pa…
Browse files Browse the repository at this point in the history
…rt of BSD echo.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189560 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
ddunbar committed Aug 29, 2013
1 parent cb4bfb3 commit b1975a8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/Linker/transitive-lazy-link.ll
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit b1975a8

Please sign in to comment.