llvm.org GIT mirror llvm / b1975a8
[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 Daniel Dunbar 6 years ago
1 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
0 ; @f and @g are lazily linked. @f requires @g - ensure @g is correctly linked.
11
2 ; 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
2 ; RUN: echo "declare i32 @f(i32)" > %t.1.ll
3 ; RUN: echo "define i32 @h(i32 %x) {" >> %t.1.ll
4 ; RUN: echo " %1 = call i32 @f(i32 %x)" >> %t.1.ll
5 ; RUN: echo " ret i32 %1" >> %t.1.ll
6 ; RUN: echo "}" >> %t.1.ll
7 ; RUN: llvm-as < %t.1.ll > %t.1.bc
38 ; RUN: llvm-as < %s > %t.2.bc
49 ; RUN: llvm-link %t.1.bc %t.2.bc
510