summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-03-19 00:17:32 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-03-19 00:17:32 +0000
commit155da5b132ff265e800ed973e0187bdadfd81702 (patch)
treee42c5c956113f41586d95acdb4c03cbc9680bc7b /llvm/test
parent579e70c9b0a0826daae6f4fbf704ad54b8e068a6 (diff)
downloadbcm5719-llvm-155da5b132ff265e800ed973e0187bdadfd81702.tar.gz
bcm5719-llvm-155da5b132ff265e800ed973e0187bdadfd81702.zip
Add a test for r263577: "Add missing error handling in llvm-lto"
On Rafael's suggestion! (also fix a discrepancy between this error message format and the others) From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 263860
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/tools/llvm-lto/error.ll3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-lto/error.ll b/llvm/test/tools/llvm-lto/error.ll
index 268b0818761..4a58fba7b79 100644
--- a/llvm/test/tools/llvm-lto/error.ll
+++ b/llvm/test/tools/llvm-lto/error.ll
@@ -3,3 +3,6 @@
; RUN: not llvm-lto --list-symbols-only %S/Inputs/empty.bc 2>&1 | FileCheck %s --check-prefix=CHECK-LIST
; CHECK-LIST: llvm-lto: error loading file '{{.*}}/Inputs/empty.bc': The file was not recognized as a valid object file
+
+; RUN: not llvm-lto --thinlto %S/Inputs/empty.bc 2>&1 | FileCheck %s --check-prefix=CHECK-THIN
+; CHECK-THIN: llvm-lto: error loading file '{{.*}}/Inputs/empty.bc': The file was not recognized as a valid object file
OpenPOWER on IntegriCloud