aboutsummaryrefslogtreecommitdiffstats
path: root/test/Archive
diff options
context:
space:
mode:
Diffstat (limited to 'test/Archive')
-rw-r--r--test/Archive/MacOSX.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Archive/MacOSX.ll b/test/Archive/MacOSX.ll
new file mode 100644
index 0000000..aa7a0c7
--- /dev/null
+++ b/test/Archive/MacOSX.ll
@@ -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