diff options
Diffstat (limited to 'test/tools/gold/invalid.ll')
-rw-r--r-- | test/tools/gold/invalid.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/tools/gold/invalid.ll b/test/tools/gold/invalid.ll new file mode 100644 index 0000000..8db7644 --- /dev/null +++ b/test/tools/gold/invalid.ll @@ -0,0 +1,7 @@ +; RUN: not ld -plugin %llvmshlibdir/LLVMgold.so \ +; RUN: %p/Inputs/invalid.bc -o %t2 2>&1 | FileCheck %s + +; test that only one error gets printed + +; CHECK: error: LLVM gold plugin has failed to create LTO module: Malformed block +; CHECK-NOT: error |