Changes in directory llvm/test/Linker:

link-archive.ll added (r1.1)
---
Log message:

Add a test case for PR1434: http://llvm.org/PR1434 


---
Diffs of the changes:  (+15 -0)

 link-archive.ll |   15 +++++++++++++++
 1 files changed, 15 insertions(+)


Index: llvm/test/Linker/link-archive.ll
diff -c /dev/null llvm/test/Linker/link-archive.ll:1.1
*** /dev/null   Thu May 17 22:47:00 2007
--- llvm/test/Linker/link-archive.ll    Thu May 17 22:46:50 2007
***************
*** 0 ****
--- 1,15 ----
+ ; Test linking of a bc file to an archive via llvm-ld. 
+ ; PR1434
+ ; RUN: llvm-as %s -o %t.bar.bc -f
+ ; RUN: echo {define i32* @foo(i32 %x) \{ ret i32* @baz \} \
+ ; RUN:   @baz = external global i32 } | llvm-as -o %t.foo.bc -f
+ ; RUN: llvm-ar rf %t.foo.a %t.foo.bc
+ ; RUN: llvm-ar rf %t.bar.a %t.bar.bc
+ ; RUN: llvm-ld -disable-opt %t.bar.bc %t.foo.a -o %t.bc 
+ ; RUN: llvm-ld -disable-opt %t.foo.bc %t.bar.a -o %t.bc
+ declare i32* @foo(...)
+ define i32* @bar() {
+       %ret = call i32* (...)* @foo( i32 123 )
+       ret i32* %ret
+ }
+ @baz = global i32 0



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to