There was an error while loading. Please reload this page.
1 parent b8da61f commit 5c8f5c1Copy full SHA for 5c8f5c1
llvm/test/Linker/transitive-lazy-link.ll
@@ -1,6 +1,11 @@
1
; @f and @g are lazily linked. @f requires @g - ensure @g is correctly linked.
2
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
+; 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
9
; RUN: llvm-as < %s > %t.2.bc
10
; RUN: llvm-link %t.1.bc %t.2.bc
11
0 commit comments