1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 04:22:57 +02:00
llvm-mirror/test/tools/llvm-readobj/coff-zero-string-table.test
Nico Rieck 77f80ce337 Relax COFF string table check
COFF object files with 0 as string table size are currently rejected. This
prevents us from reading object files written by tools like cvtres that
violate the PECOFF spec and write 0 instead of 4 for the size of an empty
string table.

llvm-svn: 202292
2014-02-26 19:51:44 +00:00

9 lines
248 B
Plaintext

Ensure that we can read COFF objects with a string table size of 0 (instead
of 4) for empty string tables.
RUN: llvm-readobj -t %p/Inputs/zero-string-table.obj.coff-i386 | FileCheck %s
CHECK: Symbols [
CHECK: Symbol {
CHECK: Name: $R000000