27 lines · plain
1## Show that llvm-size emits an error if passed in a non-existent file.2 3# RUN: not llvm-size %t.blah 2>&1 | FileCheck %s -DFILE=%t.blah -DMSG=%errc_ENOENT --check-prefix=ENOENT4# ENOENT: {{.*}}llvm-size{{.*}}: error: '[[FILE]]': [[MSG]]5 6## Show that llvm-size reads a.out if not passed any file.7 8# RUN: rm -rf %t && mkdir -p %t9# RUN: cd %t10# RUN: yaml2obj %s -o a.out11# RUN: llvm-size 2>&1 | FileCheck %s -DFILE=a.out12 13# CHECK: text data bss dec hex filename14# CHECK-NEXT: 42 0 0 42 2a a.out15 16--- !ELF17FileHeader:18 Class: ELFCLASS6419 Data: ELFDATA2LSB20 Type: ET_REL21 Machine: EM_X86_6422Sections:23 - Name: .text24 Type: SHT_PROGBITS25 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]26 Size: 4227