summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-lto/error.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/tools/llvm-lto/error.ll')
-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 43043d0cdc0..268b0818761 100644
--- a/llvm/test/tools/llvm-lto/error.ll
+++ b/llvm/test/tools/llvm-lto/error.ll
@@ -1,2 +1,5 @@
; RUN: not llvm-lto foobar 2>&1 | FileCheck %s
; CHECK: llvm-lto: error loading file 'foobar': {{N|n}}o such file or directory
+
+; 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
OpenPOWER on IntegriCloud