From 1ea49d1bdd6212e73305a3ca06c353e743f6efe2 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. llvm-svn: 225545 --- llvm/test/LTO/invalid.ll | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 llvm/test/LTO/invalid.ll diff --git a/llvm/test/LTO/invalid.ll b/llvm/test/LTO/invalid.ll new file mode 100644 index 0000000..39b9285 --- /dev/null +++ b/llvm/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 -- 2.7.4