From 64fe6cce3eed6212709528a99de43a8cabb9d699 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 9 Jan 2015 20:55:09 +0000 Subject: [PATCH] Add a testcase of llvm-lto error handling. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225545 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/LTO/invalid.ll | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 test/LTO/invalid.ll diff --git a/test/LTO/invalid.ll b/test/LTO/invalid.ll new file mode 100644 index 00000000000..39b928587db --- /dev/null +++ b/test/LTO/invalid.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-lto %S/../Bitcode/invalid.ll.bc 2>&1 | FileCheck %s + + +; CHECK: llvm-lto{{.*}}: error loading file '{{.*}}/../Bitcode/invalid.ll.bc': Invalid value