diff options
Diffstat (limited to 'test/Object/coff-archive-short.test')
-rw-r--r-- | test/Object/coff-archive-short.test | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/Object/coff-archive-short.test b/test/Object/coff-archive-short.test new file mode 100644 index 0000000000000..fa531b3b63145 --- /dev/null +++ b/test/Object/coff-archive-short.test @@ -0,0 +1,26 @@ +# +# Check if the index is appearing properly in the output file +# +# coff_archive_short.lib does not have member whose name is longer +# than 15 characters, thus, unlike coff_archive.lib, it has no string +# table as the third member. +# +RUN: llvm-nm --numeric-sort -s %p/Inputs/coff_archive_short.lib | FileCheck -check-prefix=CHECKIDX %s + +CHECKIDX: Archive map +CHECKIDX: _shortfn1 in short1.obj +CHECKIDX: _shortfn2 in short2.obj +CHECKIDX: short1.obj: +CHECKIDX: 00000000 N .debug$S +CHECKIDX: 00000000 i .drectve +CHECKIDX: 00000000 t .text +CHECKIDX: 00000000 T _shortfn1 +CHECKIDX: 00000001 a @feat.00 +CHECKIDX: 00aa9d1b a @comp.id +CHECKIDX: short2.obj: +CHECKIDX: 00000000 N .debug$S +CHECKIDX: 00000000 i .drectve +CHECKIDX: 00000000 t .text +CHECKIDX: 00000000 T _shortfn2 +CHECKIDX: 00000001 a @feat.00 +CHECKIDX: 00aa9d1b a @comp.id |