xref: /minix3/external/bsd/llvm/dist/llvm/test/Linker/redefinition.ll (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1; Test linking two functions with different prototypes and two globals
2; in different modules.
3; RUN: not llvm-link %s %s -o %t.bc 2>&1 | FileCheck %s
4; RUN: not llvm-link %s %S/Inputs/redefinition.ll -o %t.bc 2>&1 | FileCheck %s
5; CHECK: ERROR: Linking globals named 'foo': symbol multiply defined!
6define void @foo() { ret void }
7