gold-plugin: save the .o when given -save-temps.
[oota-llvm.git] / test / tools / gold / invalid.ll
1 ; RUN: not %gold -plugin %llvmshlibdir/LLVMgold.so \
2 ; RUN:    %p/Inputs/invalid.bc -o %t2 2>&1 | FileCheck %s
3
4 ; test that only one error gets printed
5
6 ; CHECK: error: LLVM gold plugin has failed to create LTO module: Malformed block
7 ; CHECK-NOT: error