summaryrefslogtreecommitdiff
path: root/test/Object/archive-extract-dir.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/Object/archive-extract-dir.test')
-rw-r--r--test/Object/archive-extract-dir.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Object/archive-extract-dir.test b/test/Object/archive-extract-dir.test
new file mode 100644
index 0000000000000..c718f90275b65
--- /dev/null
+++ b/test/Object/archive-extract-dir.test
@@ -0,0 +1,13 @@
+REQUIRES: shell
+
+RUN: mkdir -p %t
+RUN: cd %t
+RUN: rm -rf foo
+RUN: echo foo > foo
+RUN: rm -f test.a
+RUN: llvm-ar rc test.a foo
+RUN: rm foo
+RUN: mkdir foo
+RUN: not llvm-ar x test.a foo 2>&1 | FileCheck %s
+
+CHECK: foo: Is a directory