brintos

brintos / llvm-project-archived public Read only

0
0
Text · 332 B · 37aed3a Raw
7 lines · plain
1; Test linking two functions with different prototypes and two globals2; in different modules.3; RUN: not llvm-link %s %s -o %t.bc 2>&1 | FileCheck %s4; RUN: not llvm-link %s %S/Inputs/redefinition.ll -o %t.bc 2>&1 | FileCheck %s5; CHECK: error: Linking globals named 'foo': symbol multiply defined!6define void @foo() { ret void }7