xref: /aosp_15_r20/external/llvm/test/Linker/redefinition.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: not llvm-link %s %s -o %t.bc 2>&1 | FileCheck %s
4*9880d681SAndroid Build Coastguard Worker; RUN: not llvm-link %s %S/Inputs/redefinition.ll -o %t.bc 2>&1 | FileCheck %s
5*9880d681SAndroid Build Coastguard Worker; CHECK: ERROR: Linking globals named 'foo': symbol multiply defined!
6*9880d681SAndroid Build Coastguard Workerdefine void @foo() { ret void }
7