redefinition.ll 332 B

123456
  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 }