llvm.org GIT mirror llvm / 2bb2fc9 test / DebugInfo / dwarfdump-invalid.test
2bb2fc9

Tree @2bb2fc9 (Download .tar.gz)

dwarfdump-invalid.test @2bb2fc9raw · history · blame

1
2
3
4
5
6
; Verify that llvm-dwarfdump doesn't crash on broken input files.

RUN: not llvm-dwarfdump %p/Inputs/invalid.elf 2>&1 | FileCheck %s --check-prefix=INVALID-ELF
RUN: not llvm-dwarfdump %p/Inputs/invalid.elf.2 2>&1 | FileCheck %s --check-prefix=INVALID-ELF
RUN: not llvm-dwarfdump %p/Inputs/invalid.elf.3 2>&1 | FileCheck %s --check-prefix=INVALID-ELF
INVALID-ELF: Invalid data was encountered while parsing the file