2007-08-16 15:22:43 +08:00
|
|
|
; Test that linking two files with the same definition causes an error and
|
|
|
|
; that error is printed out.
|
2009-08-25 23:38:29 +08:00
|
|
|
; RUN: llvm-as %s -o %t.one.bc
|
|
|
|
; RUN: llvm-as %s -o %t.two.bc
|
2012-07-03 02:37:59 +08:00
|
|
|
; RUN: not llvm-link %t.one.bc %t.two.bc -o %t.bc 2>&1 | FileCheck %s
|
2007-08-16 15:22:43 +08:00
|
|
|
|
2012-04-20 03:27:54 +08:00
|
|
|
; CHECK: symbol multiply defined
|
2007-08-16 15:22:43 +08:00
|
|
|
define i32 @bar() {
|
2012-04-20 03:27:54 +08:00
|
|
|
ret i32 0
|
2007-08-16 15:22:43 +08:00
|
|
|
}
|