llvm.org GIT mirror llvm / release_50 test / Linker / redefinition.ll
release_50

Tree @release_50 (Download .tar.gz)

redefinition.ll @release_50

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