xref: /aosp_15_r20/external/llvm/test/Linker/basiclink.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. This is for PR411
3*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as %S/Inputs/basiclink.a.ll -o %t.foo.bc
4*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as %S/Inputs/basiclink.b.ll -o %t.bar.bc
5*9880d681SAndroid Build Coastguard Worker; RUN: llvm-link %t.foo.bc %t.bar.bc -o %t.bc
6*9880d681SAndroid Build Coastguard Worker; RUN: llvm-link %t.bar.bc %t.foo.bc -o %t.bc
7