From 5711a332f3ebd996149dd3ba4da72a1c4279b056 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Fri, 19 Nov 2004 18:44:31 +0000 Subject: [PATCH] Make sure we can read an archive after it has been ranlib'd git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18000 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Archive/SVR4.ll | 3 +++ test/Archive/xpg4.ll | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/test/Archive/SVR4.ll b/test/Archive/SVR4.ll index f06b6b3311a..7b2a4af9e38 100644 --- a/test/Archive/SVR4.ll +++ b/test/Archive/SVR4.ll @@ -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 diff --git a/test/Archive/xpg4.ll b/test/Archive/xpg4.ll index 19c867963ca..14c1a3874ba 100644 --- a/test/Archive/xpg4.ll +++ b/test/Archive/xpg4.ll @@ -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 -- 2.34.1