blob: 920782d15bb6f1e36d4535ff59feb2b1d70753cd [file] [log] [blame]
Reid Spencer3c1b4012007-08-16 07:22:43 +00001; Test that linking two files with the same definition causes an error and
2; that error is printed out.
Dan Gohmanfea1dd02009-08-25 15:38:29 +00003; RUN: llvm-as %s -o %t.one.bc
4; RUN: llvm-as %s -o %t.two.bc
Dan Gohman83935ac2007-12-11 15:50:23 +00005; RUN: not llvm-ld -disable-opt -link-as-library %t.one.bc %t.two.bc \
Reid Spencer3c1b4012007-08-16 07:22:43 +00006; RUN: -o %t.bc 2>%t.err
Chris Lattner6157e382008-07-14 07:23:24 +00007; RUN: grep "symbol multiply defined" %t.err
Reid Spencer3c1b4012007-08-16 07:22:43 +00008
9define i32 @bar() {
10 ret i32 0
11}