• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
7
8# bogus1: Invalid data was encountered while parsing the file
9
10# RUN: not llvm-objdump -macho -archive-headers \
11# RUN:   %p/Inputs/libbogus2.a \
12# RUN:   2>&1 | FileCheck -check-prefix=bogus2 %s
13
14# bogus2: LLVM ERROR: Invalid data was encountered while parsing the file
15
16# RUN: not llvm-objdump -macho -archive-headers \
17# RUN:   %p/Inputs/libbogus3.a \
18# RUN:   2>&1 | FileCheck -check-prefix=bogus3 %s
19
20# bogus3: LLVM ERROR: Invalid data was encountered while parsing the file
21