1*9880d681SAndroid Build Coastguard Worker; Test linking two functions with different prototypes and two globals 2*9880d681SAndroid Build Coastguard Worker; in different modules. 3*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as %s -o %t.foo1.bc 4*9880d681SAndroid Build Coastguard Worker; RUN: echo | llvm-as -o %t.foo2.bc 5*9880d681SAndroid Build Coastguard Worker; RUN: llvm-link %t.foo2.bc %t.foo1.bc -S | FileCheck %s 6*9880d681SAndroid Build Coastguard Worker; RUN: llvm-link %t.foo1.bc %t.foo2.bc -S | FileCheck %s 7*9880d681SAndroid Build Coastguard Worker; CHECK: addrspace(2) 8*9880d681SAndroid Build Coastguard Worker; rdar://6038021 9*9880d681SAndroid Build Coastguard Worker 10*9880d681SAndroid Build Coastguard Worker@G = addrspace(2) global i32 256 11