brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 7616fc1 Raw
46 lines · yaml
1## Test that the string table is dumped correctly.2 3## The string table contains more than one entry.4# RUN: yaml2obj --docnum=1 %s -o %t15# RUN: llvm-readobj --string-table %t1 | FileCheck %s --check-prefix=BASIC6 7# BASIC:      StringTable {8# BASIC-NEXT:   Length: 169# BASIC-NEXT:   [     4]   name210# BASIC-NEXT:   [     a]   name111# BASIC-NEXT: }12 13--- !XCOFF14FileHeader:15  MagicNumber: 0x01F716Symbols:17  - Name: name118  - Name: name219 20## The string table just contains a single-byte sized string entry.21# RUN: yaml2obj --docnum=2 %s -o %t222# RUN: llvm-readobj --string-table %t2 | FileCheck %s --check-prefix=SINGLE-BYTE23 24# SINGLE-BYTE:      StringTable {25# SINGLE-BYTE-NEXT:   Length: 626# SINGLE-BYTE-NEXT:   [     4]   n27# SINGLE-BYTE-NEXT: }28 29--- !XCOFF30FileHeader:31  MagicNumber: 0x01F732Symbols:33  - Name: n34 35## There is no string table.36# RUN: yaml2obj --docnum=3 %s -o %t337# RUN: llvm-readobj --string-table %t3 | FileCheck %s --check-prefix=NO-STRTBL38 39# NO-STRTBL:      StringTable {40# NO-STRTBL-NEXT:   Length: 041# NO-STRTBL-NEXT: }42 43--- !XCOFF44FileHeader:45  MagicNumber: 0x01F746