Skip to content

Commit 5c8f5c1

Browse files
committed
[tests] Use multiple statements instead of 'echo -e', which is not part of BSD echo.
llvm-svn: 189560
1 parent b8da61f commit 5c8f5c1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

llvm/test/Linker/transitive-lazy-link.ll

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
; @f and @g are lazily linked. @f requires @g - ensure @g is correctly linked.
22

3-
; 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
3+
; RUN: echo "declare i32 @f(i32)" > %t.1.ll
4+
; RUN: echo "define i32 @h(i32 %x) {" >> %t.1.ll
5+
; RUN: echo " %1 = call i32 @f(i32 %x)" >> %t.1.ll
6+
; RUN: echo " ret i32 %1" >> %t.1.ll
7+
; RUN: echo "}" >> %t.1.ll
8+
; RUN: llvm-as < %t.1.ll > %t.1.bc
49
; RUN: llvm-as < %s > %t.2.bc
510
; RUN: llvm-link %t.1.bc %t.2.bc
611

0 commit comments

Comments
 (0)