aboutsummaryrefslogtreecommitdiffstats
path: root/test/Object/directory.ll
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-07-10 21:47:16 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-07-10 21:47:16 +0000
commit6911911e614c1da1957af5518a15c5605657b4e2 (patch)
treefa2f83f1bb63b389504c7487a21cc4f4e31bf6b0 /test/Object/directory.ll
parentf03fb232671b6a7d0deed602a702e25d3305acc9 (diff)
downloadexternal_llvm-6911911e614c1da1957af5518a15c5605657b4e2.zip
external_llvm-6911911e614c1da1957af5518a15c5605657b4e2.tar.gz
external_llvm-6911911e614c1da1957af5518a15c5605657b4e2.tar.bz2
Move tests from test/Archive to test/Object.
There is no lib/Archive anymore and some archive tests were in test/Archive and others in test/Object. Since archive is just one of the formats supported by lib/Object, test/Object is probably the best location. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186038 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Object/directory.ll')
-rw-r--r--test/Object/directory.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Object/directory.ll b/test/Object/directory.ll
new file mode 100644
index 0000000..336d218
--- /dev/null
+++ b/test/Object/directory.ll
@@ -0,0 +1,12 @@
+;RUN: not llvm-ar r %T/test.a . 2>&1 | FileCheck %s
+;CHECK: . Is a directory
+
+;RUN: rm -f %T/test.a
+;RUN: touch %T/a-very-long-file-name
+;RUN: llvm-ar r %T/test.a %s %T/a-very-long-file-name
+;RUN: llvm-ar r %T/test.a %T/a-very-long-file-name
+;RUN: llvm-ar t %T/test.a | sort | FileCheck -check-prefix=MEMBERS %s
+;MEMBERS-NOT: /
+;MEMBERS: a-very-long-file-name
+;MEMBERS: directory.ll
+;MEMBERS-NOT: a-very-long-file-name