new testcase for PR662
[oota-llvm.git] / test / Linker / 2003-04-21-Linkage.ll
1 ; RUN: echo "%X = linkonce global int 5  implementation linkonce int %foo() { ret int 7 }" | llvm-as > %t.1.bc
2 ; RUN: llvm-as < %s > %t.2.bc
3 ; RUN: llvm-link %t.[12].bc 
4 %X = external global int 
5
6 implementation
7
8 declare int %foo() 
9
10 void %bar() {
11         load int* %X
12         call int %foo()
13         ret void
14 }
15