1 ; Verify that llvm-dwarfdump doesn't crash on broken input files.
3 RUN: not llvm-dwarfdump %p/Inputs/invalid.elf 2>&1 | FileCheck %s --check-prefix=INVALID-ELF1
4 RUN: not llvm-dwarfdump %p/Inputs/invalid.elf.2 2>&1 | FileCheck %s --check-prefix=INVALID-ELF2
5 RUN: not llvm-dwarfdump %p/Inputs/invalid.elf.3 2>&1 | FileCheck %s --check-prefix=INVALID-ELF3
6 INVALID-ELF1: section header table goes past the end of the file
7 INVALID-ELF2: Invalid ELF data
8 INVALID-ELF3: Invalid ELF class