1 ## Test that the string table is dumped correctly.
3 ## The string table contains more than one entry.
4 # RUN: yaml2obj --docnum=1 %s -o %t1
5 # RUN: llvm-readobj --string-table %t1 | FileCheck %s --check-prefix=BASIC
8 # BASIC-NEXT: Length: 16
9 # BASIC-NEXT: [ 4] name2
10 # BASIC-NEXT: [ a] name1
20 ## The string table just contains a single-byte sized string entry.
21 # RUN: yaml2obj --docnum=2 %s -o %t2
22 # RUN: llvm-readobj --string-table %t2 | FileCheck %s --check-prefix=SINGLE-BYTE
24 # SINGLE-BYTE: StringTable {
25 # SINGLE-BYTE-NEXT: Length: 6
26 # SINGLE-BYTE-NEXT: [ 4] n
35 ## There is no string table.
36 # RUN: yaml2obj --docnum=3 %s -o %t3
37 # RUN: llvm-readobj --string-table %t3 | FileCheck %s --check-prefix=NO-STRTBL
39 # NO-STRTBL: StringTable {
40 # NO-STRTBL-NEXT: Length: 0