1*42a21778SAbhina Sreeskantharajan; RUN: not llvm-lto foobar 2>&1 | FileCheck -DMSG=%errc_ENOENT %s 2*42a21778SAbhina Sreeskantharajan; CHECK: llvm-lto: error loading file 'foobar': [[MSG]] 37ad9ec9fSPetr Pavlu 47ad9ec9fSPetr Pavlu; RUN: not llvm-lto --list-symbols-only %S/Inputs/empty.bc 2>&1 | FileCheck %s --check-prefix=CHECK-LIST 57ad9ec9fSPetr Pavlu; CHECK-LIST: llvm-lto: error loading file '{{.*}}/Inputs/empty.bc': The file was not recognized as a valid object file 6155da5b1SMehdi Amini 7564d248eSBen Dunbobbin; RUN: not llvm-lto --list-dependent-libraries-only %S/Inputs/empty.bc 2>&1 | FileCheck %s --check-prefix=CHECK-LIBS 8564d248eSBen Dunbobbin; CHECK-LIBS: llvm-lto: {{.*}}/Inputs/empty.bc: Could not read LTO input file: The file was not recognized as a valid object file 9564d248eSBen Dunbobbin 10e551b737SFrancis Visoiu Mistrih; RUN: not llvm-lto --print-macho-cpu-only %S/Inputs/empty.bc 2>&1 | FileCheck %s --check-prefix=CHECK-MACHO 11e551b737SFrancis Visoiu Mistrih; CHECK-MACHO: llvm-lto: error: The file was not recognized as a valid object file 12e551b737SFrancis Visoiu Mistrih 13155da5b1SMehdi Amini; RUN: not llvm-lto --thinlto %S/Inputs/empty.bc 2>&1 | FileCheck %s --check-prefix=CHECK-THIN 140e828958SJF Bastien; CHECK-THIN: llvm-lto: error loading file '{{.*}}/Inputs/empty.bc': file too small to contain bitcode header 15