1#
2# Check if the index is appearing properly in the output file
3#
4# coff_archive_short.lib does not have member whose name is longer
5# than 15 characters, thus, unlike coff_archive.lib, it has no string
6# table as the third member.
7#
8RUN: llvm-nm -a --numeric-sort -M %p/Inputs/coff_archive_short.lib | FileCheck -check-prefix=CHECKIDX %s
9
10CHECKIDX: Archive map
11CHECKIDX: _shortfn1 in short1.obj
12CHECKIDX: _shortfn2 in short2.obj
13CHECKIDX: short1.obj:
14CHECKIDX: 00000000 N .debug$S
15CHECKIDX: 00000000 i .drectve
16CHECKIDX: 00000000 t .text
17CHECKIDX: 00000000 T _shortfn1
18CHECKIDX: 00000001 a @feat.00
19CHECKIDX: 00aa9d1b a @comp.id
20CHECKIDX: short2.obj:
21CHECKIDX: 00000000 N .debug$S
22CHECKIDX: 00000000 i .drectve
23CHECKIDX: 00000000 t .text
24CHECKIDX: 00000000 T _shortfn2
25CHECKIDX: 00000001 a @feat.00
26CHECKIDX: 00aa9d1b a @comp.id
27