blob: e3ed385b68a189bf25a8774b081a4983d22c62dd [file] [log] [blame]
Chris Lattner29ae6c52008-06-27 03:10:24 +00001; Test linking two functions with different prototypes and two globals
2; in different modules.
Dan Gohman2d65d352009-08-25 15:38:29 +00003; RUN: llvm-as %s -o %t.foo1.bc
4; RUN: echo | llvm-as -o %t.foo2.bc
Dan Gohman0682a462009-09-15 15:38:31 +00005; RUN: llvm-link %t.foo2.bc %t.foo1.bc -S | grep {addrspace(2)}
6; RUN: llvm-link %t.foo1.bc %t.foo2.bc -S | grep {addrspace(2)}
Chris Lattner29ae6c52008-06-27 03:10:24 +00007; rdar://6038021
8
Chris Lattner103ff152009-01-02 07:01:27 +00009@G = addrspace(2) global i32 256