aboutsummaryrefslogtreecommitdiff
path: root/test/Object/simple-archive.test
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2013-01-04 20:36:28 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2013-01-04 20:36:28 +0000
commit4d9c5397b4a3be747bdb73f1d24c3fdbaaf438fe (patch)
tree4caf73a9a9994c1aa9d6f82f8cf356b760a268ed /test/Object/simple-archive.test
parente13f441e002b95bb64d883d173f6aff9615556fd (diff)
[Object][ELF] Add a maximum alignment. This is used by createELFObjectFile to create a properly aligned reader.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171520 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Object/simple-archive.test')
-rw-r--r--test/Object/simple-archive.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Object/simple-archive.test b/test/Object/simple-archive.test
new file mode 100644
index 0000000000..3e6760ed97
--- /dev/null
+++ b/test/Object/simple-archive.test
@@ -0,0 +1,12 @@
+#
+# Check if the index is appearing properly in the output file
+#
+RUN: llvm-nm -s %p/Inputs/libsimple_archive.a | FileCheck -check-prefix=CHECKIDX %s
+
+CHECKIDX: Archive map
+CHECKIDX: abcdefghijklmnopqrstuvwxyz12345678 in 1.o
+CHECKIDX: main in 1.o
+CHECKIDX: 1.o:
+CHECKIDX: 00000000 D abcdefghijklmnopqrstuvwxyz12345678
+CHECKIDX: U fn1
+CHECKIDX: 00000000 T main