summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Object/Inputs/archive-test.a-gnu-minimal2
-rw-r--r--llvm/test/Object/nm-archive.test3
2 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/Object/Inputs/archive-test.a-gnu-minimal b/llvm/test/Object/Inputs/archive-test.a-gnu-minimal
new file mode 100644
index 00000000000..a243273c484
--- /dev/null
+++ b/llvm/test/Object/Inputs/archive-test.a-gnu-minimal
@@ -0,0 +1,2 @@
+!<arch>
+test/ 1372964340 1000 1000 100664 0 `
diff --git a/llvm/test/Object/nm-archive.test b/llvm/test/Object/nm-archive.test
index 869bea849c4..922983c887f 100644
--- a/llvm/test/Object/nm-archive.test
+++ b/llvm/test/Object/nm-archive.test
@@ -9,6 +9,9 @@ RUN: llvm-nm %t2 | FileCheck %s -check-prefix BITCODE
Test we don't error with an archive with no symtab.
RUN: llvm-nm %p/Inputs/archive-test.a-gnu-no-symtab
+Or in an archive with no symtab or string table.
+RUN: llvm-nm %p/Inputs/archive-test.a-gnu-minimal
+
COFF: trivial-object-test.coff-i386:
COFF-NEXT: 00000000 d .data
COFF-NEXT: 00000000 t .text
OpenPOWER on IntegriCloud