2016-01-12 06:08:22 +08:00
|
|
|
; RUN: not llvm-lto foobar 2>&1 | FileCheck %s
|
2016-01-12 22:58:40 +08:00
|
|
|
; CHECK: llvm-lto: error loading file 'foobar': {{N|n}}o such file or directory
|
2016-03-01 21:13:49 +08:00
|
|
|
|
|
|
|
; 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
|
2016-03-19 08:17:32 +08:00
|
|
|
|
2019-06-12 19:07:56 +08:00
|
|
|
; RUN: not llvm-lto --list-dependent-libraries-only %S/Inputs/empty.bc 2>&1 | FileCheck %s --check-prefix=CHECK-LIBS
|
|
|
|
; CHECK-LIBS: llvm-lto: {{.*}}/Inputs/empty.bc: Could not read LTO input file: The file was not recognized as a valid object file
|
|
|
|
|
2020-02-19 09:13:47 +08:00
|
|
|
; RUN: not llvm-lto --print-macho-cpu-only %S/Inputs/empty.bc 2>&1 | FileCheck %s --check-prefix=CHECK-MACHO
|
|
|
|
; CHECK-MACHO: llvm-lto: error: The file was not recognized as a valid object file
|
|
|
|
|
2016-03-19 08:17:32 +08:00
|
|
|
; RUN: not llvm-lto --thinlto %S/Inputs/empty.bc 2>&1 | FileCheck %s --check-prefix=CHECK-THIN
|
2019-06-27 03:50:12 +08:00
|
|
|
; CHECK-THIN: llvm-lto: error loading file '{{.*}}/Inputs/empty.bc': file too small to contain bitcode header
|