summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2015-01-16 22:10:36 +0000
committerKevin Enderby <enderby@apple.com>2015-01-16 22:10:36 +0000
commitc1271893af3f5c732b82ce133af8fbeafba2e79c (patch)
treef0983476d1d21fac89da745661bc4a6a0d8640b4 /llvm/test
parent49b425d9d291275bbd68ef975542e714441b2554 (diff)
downloadbcm5719-llvm-c1271893af3f5c732b82ce133af8fbeafba2e79c.tar.gz
bcm5719-llvm-c1271893af3f5c732b82ce133af8fbeafba2e79c.zip
Fix the Archive::Child::getRawSize() method used by llvm-objdump’s -archive-headers option
and tweak its use in llvm-objdump. Add back the test case for the -archive-headers option. llvm-svn: 226332
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/tools/llvm-objdump/X86/macho-archive-headers.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/X86/macho-archive-headers.test b/llvm/test/tools/llvm-objdump/X86/macho-archive-headers.test
new file mode 100644
index 00000000000..3d9043e671a
--- /dev/null
+++ b/llvm/test/tools/llvm-objdump/X86/macho-archive-headers.test
@@ -0,0 +1,10 @@
+RUN: llvm-objdump %p/Inputs/macho-universal-archive.x86_64.i386 -macho -archive-headers -arch all \
+RUN: | FileCheck %s
+
+# Note the date as printed by ctime(3) is time zone dependent and not checked.
+CHECK: Archive : {{.*}}/macho-universal-archive.x86_64.i386 (architecture x86_64)
+CHECK: -rw-r--r--124/11 44 {{.*}} __.SYMDEF SORTED
+CHECK: -rw-r--r--124/0 860 {{.*}} hello.o
+CHECK: Archive : {{.*}}/macho-universal-archive.x86_64.i386 (architecture i386)
+CHECK: -rw-r--r--124/11 60 {{.*}} __.SYMDEF SORTED
+CHECK: -rw-r--r--124/0 388 {{.*}} foo.o
OpenPOWER on IntegriCloud