blob: e1d35741e7f1f60ccfc88914cff58adcc1938ef0 [file] [log] [blame]
Chris Lattnera534b0f2008-06-27 03:10:24 +00001; Test linking two functions with different prototypes and two globals
2; in different modules.
Dan Gohmanfea1dd02009-08-25 15:38:29 +00003; RUN: llvm-as %s -o %t.foo1.bc
4; RUN: echo | llvm-as -o %t.foo2.bc
Chandler Carruth4177e6f2012-07-02 12:47:22 +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 Lattnera534b0f2008-06-27 03:10:24 +00007; rdar://6038021
8
Chris Lattnerdf986172009-01-02 07:01:27 +00009@G = addrspace(2) global i32 256