1## No input files. 2# RUN: not llvm-tli-checker 2>&1 | FileCheck %s --check-prefix=NOFILES 3# 4## File not found. 5# RUN: rm -f %t0.txt 6# RUN: llvm-tli-checker %t0.txt 2>&1 | FileCheck %s -DFILE=%t0.txt --check-prefixes=FILE-NOT-FOUND,NOSYMBOLS-AT-ALL 7# 8## Reject a non-binary file. 9# RUN: echo nonsense > %t1.o 10# RUN: llvm-tli-checker %t1.o 2>&1 | FileCheck %s --check-prefixes=INVALID-FILE,NOSYMBOLS-AT-ALL 11# 12## Reject an empty file. 13# RUN: yaml2obj %s -o %t2.o 14# RUN: llvm-tli-checker %t2.o 2>&1 | FileCheck %s -DFILE=%t2.o --check-prefixes=NOSYMBOLS-IN-FILE,NOSYMBOLS-AT-ALL 15# 16# NOFILES: error: no input files 17# FILE-NOT-FOUND-DAG: warning: [[FILE]]: not found 18# INVALID-FILE-DAG: warning: The file was not recognized as a valid object file 19# NOSYMBOLS-AT-ALL-DAG: error: NO symbols found! 20# NOSYMBOLS-IN-FILE-DAG: warning: [[FILE]]: no symbols found 21 22## Minimal ELF with no symbols. 23--- !ELF 24FileHeader: 25 Class: ELFCLASS64 26 Data: ELFDATA2LSB 27 OSABI: ELFOSABI_FREEBSD 28 Type: ET_DYN 29 Machine: EM_X86_64 30Sections: 31 - Name: .text 32 Type: SHT_PROGBITS 33