4e7ffbc97d64c2fb8e84bed71002bf4467420820
[oota-llvm.git] / test / Linker / link-messages.ll
1 ; Test that linking two files with the same definition causes an error and
2 ; that error is printed out.
3 ; RUN: llvm-as %s -o %t.one.bc
4 ; RUN: llvm-as %s -o %t.two.bc
5 ; RUN: not llvm-link %t.one.bc %t.two.bc -o %t.bc 2>&1 | FileCheck %s
6
7 ; CHECK: symbol multiply defined
8 define i32 @bar() {
9   ret i32 0
10 }