1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-04-02 10:33:53 +00:00
2014-10-31 16:52:30 +00:00

7 lines
332 B
LLVM

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