Make sure we can read an archive after it has been ranlib'd
authorReid Spencer <rspencer@reidspencer.com>
Fri, 19 Nov 2004 18:44:31 +0000 (18:44 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Fri, 19 Nov 2004 18:44:31 +0000 (18:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18000 91177308-0d34-0410-b5e6-96231b3b80d8

test/Archive/SVR4.ll
test/Archive/xpg4.ll

index f06b6b3311a73cb20fd316c7bc4ee5826c823102..7b2a4af9e385e3ec62203e64aee40ae8cc737c01 100644 (file)
@@ -5,3 +5,6 @@
 ; RUN: ar t SVR4.a > Output/svr1
 ; RUN: llvm-ar t SVR4.a > Output/svr2
 ; RUN: diff Output/svr1  Output/svr2
+; RUN: cp SVR4.a Output/SVR4_mod.a
+; RUN: llvm-ranlib Output/SVR4_mod.a
+; RUN: llvm-ar t Output/SVR4_mod.a
index 19c867963cacc73a7e401c013faad79bf159dfdb..14c1a3874ba3ee6738ccd8cb3e746ed1e51b26e1 100644 (file)
@@ -3,5 +3,8 @@
 ; reading xpg4 style archives.
 
 ; RUN: ar t xpg4.a > Output/xpg1
-; RUN: llvm-ar t SVR4.a > Output/xpg2
+; RUN: llvm-ar t xpg4.a > Output/xpg2
 ; RUN: diff Output/xpg1 Output/xpg2
+; RUN: cp xpg4.a Output/xpg4_mod.a
+; RUN: llvm-ranlib Output/xpg4_mod.a
+; RUN: llvm-ar t Output/xpg4_mod.a