2014-11-01 00:52:30 +08:00
|
|
|
; Test linking two functions with different prototypes and two globals
|
2007-02-06 04:47:22 +08:00
|
|
|
; in different modules.
|
2014-11-01 00:52:30 +08:00
|
|
|
; 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
|
2018-04-18 22:41:47 +08:00
|
|
|
; CHECK: error: Linking globals named 'foo': symbol multiply defined!
|
2007-02-06 04:47:22 +08:00
|
|
|
define void @foo() { ret void }
|