llvm-for-llvmta/test/Linker/redefinition.ll

7 lines
332 B
LLVM
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
; 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 }