blob: d4310bc816e27f1003bf7898896d9cf23986da80 [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
Eli Benderskyd7170ea2013-04-09 16:51:13 +00005; RUN: llvm-link %t.foo2.bc %t.foo1.bc -S | FileCheck %s
6; RUN: llvm-link %t.foo1.bc %t.foo2.bc -S | FileCheck %s
7; CHECK: addrspace(2)
Chris Lattnera534b0f2008-06-27 03:10:24 +00008; rdar://6038021
9
Chris Lattnerdf986172009-01-02 07:01:27 +000010@G = addrspace(2) global i32 256