From be984d6376bf42f9e05fb660b44808cffe9711a8 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 20 Jun 2013 13:16:44 +0000 Subject: Don't include directory names in archives. This matches the behavior of both gnu and os x versions of ar. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184420 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Archive/directory.ll | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/Archive/directory.ll b/test/Archive/directory.ll index f17ac5d36b..e10c3b43b8 100644 --- a/test/Archive/directory.ll +++ b/test/Archive/directory.ll @@ -1,2 +1,8 @@ ;RUN: not llvm-ar r %T/test.a . 2>&1 | FileCheck %s ;CHECK: . Is a directory + +;RUN: rm -f %T/test.a +;RUN: llvm-ar r %T/test.a %s +;RUN: llvm-ar t %T/test.a | FileCheck -check-prefix=MEMBERS %s +;MEMBERS-NOT: / +;MEMBERS: directory.ll -- cgit v1.2.3