xref: /aosp_15_r20/external/llvm/test/Linker/2008-06-26-AddressSpace.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
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