Test case for reading MacOSX archives.
authorReid Spencer <rspencer@reidspencer.com>
Fri, 19 Nov 2004 21:30:15 +0000 (21:30 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Fri, 19 Nov 2004 21:30:15 +0000 (21:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18014 91177308-0d34-0410-b5e6-96231b3b80d8

test/Archive/MacOSX.ll [new file with mode: 0644]

diff --git a/test/Archive/MacOSX.ll b/test/Archive/MacOSX.ll
new file mode 100644 (file)
index 0000000..aa7a0c7
--- /dev/null
@@ -0,0 +1,10 @@
+; This isn't really an assembly file, its just here to
+; run the following test which tests llvm-ar for compatibility
+; reading MacOSX (BSD4.4) style archives.
+
+; RUN: ar t MacOSX.a > Output/osx1
+; RUN: llvm-ar t MacOSX.a > Output/osx2
+; RUN: diff Output/osx1  Output/osx2
+; RUN: cp MacOSX.a Output/MacOSX_mod.a
+; RUN: llvm-ranlib Output/MacOSX_mod.a
+; RUN: llvm-ar t Output/MacOSX_mod.a