Unify and update link-messages.ll and redefinition.ll. NFC.
[oota-llvm.git] / test / Linker / redefinition.ll
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!
6 define void @foo() { ret void }