1 ; Test linking two functions with different prototypes and two globals
2 ; in different modules. This is for PR411
3 ; RUN: llvm-as %s -o %t.bar.bc
4 ; RUN: echo {define i32* @foo(i32 %x) \{ ret i32* @baz \} \
5 ; RUN: @baz = external global i32 } | llvm-as -o %t.foo.bc
6 ; RUN: llvm-link %t.bar.bc %t.foo.bc -o %t.bc
7 ; RUN: llvm-link %t.foo.bc %t.bar.bc -o %t.bc
10 %ret = call i32* (...)* @foo( i32 123 )