X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FLinker%2Flink-messages.ll;h=4e7ffbc97d64c2fb8e84bed71002bf4467420820;hb=566fb9fe3ed767be7218fb1608ec6a284067d3b0;hp=dae7240030424c989c933376291ad60cda61b15e;hpb=3c1b4012b6d577926e53d1343ccfa4247f677b4a;p=oota-llvm.git diff --git a/test/Linker/link-messages.ll b/test/Linker/link-messages.ll index dae72400304..4e7ffbc97d6 100644 --- a/test/Linker/link-messages.ll +++ b/test/Linker/link-messages.ll @@ -1,11 +1,10 @@ ; Test that linking two files with the same definition causes an error and ; that error is printed out. -; RUN: llvm-as %s -o %t.one.bc -f -; RUN: llvm-as %s -o %t.two.bc -f -; RUN: ignore llvm-ld -disable-opt -link-as-library %t.one.bc %t.two.bc \ -; RUN: -o %t.bc 2>%t.err -; RUN: grep "Function is already defined" %t.err +; RUN: llvm-as %s -o %t.one.bc +; RUN: llvm-as %s -o %t.two.bc +; RUN: not llvm-link %t.one.bc %t.two.bc -o %t.bc 2>&1 | FileCheck %s +; CHECK: symbol multiply defined define i32 @bar() { - ret i32 0 + ret i32 0 }