1 // These test checks that llvm-objdump will not crash with malformed Archive
2 // files. So the check line is not all that important but the bug fixes to
3 // make sure llvm-objdump is robust is what matters.
4 # RUN: not llvm-objdump -macho -archive-headers \
5 # RUN: %p/Inputs/libbogus1.a \
6 # RUN: 2>&1 | FileCheck -check-prefix=bogus1 %s
8 # bogus1: Invalid data was encountered while parsing the file
10 # RUN: not llvm-objdump -macho -archive-headers \
11 # RUN: %p/Inputs/libbogus2.a \
12 # RUN: 2>&1 | FileCheck -check-prefix=bogus2 %s
14 # bogus2: LLVM ERROR: Invalid data was encountered while parsing the file
16 # RUN: not llvm-objdump -macho -archive-headers \
17 # RUN: %p/Inputs/libbogus3.a \
18 # RUN: 2>&1 | FileCheck -check-prefix=bogus3 %s
20 # bogus3: LLVM ERROR: Invalid data was encountered while parsing the file