aboutsummaryrefslogtreecommitdiffstats
path: root/test/Object
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-07-11 13:24:27 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-07-11 13:24:27 +0000
commitfc699872e35ec794d7373680be6f1946fe8e9ca6 (patch)
treea443ef0663f73910f9cc029ce169b2b1a0c7566b /test/Object
parent86779ee177c11863f74a9aecb445fdd8659557e0 (diff)
downloadexternal_llvm-fc699872e35ec794d7373680be6f1946fe8e9ca6.zip
external_llvm-fc699872e35ec794d7373680be6f1946fe8e9ca6.tar.gz
external_llvm-fc699872e35ec794d7373680be6f1946fe8e9ca6.tar.bz2
Add a test for llvm-ar's 'd' operation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186082 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Object')
-rw-r--r--test/Object/archive-delete.test30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/Object/archive-delete.test b/test/Object/archive-delete.test
new file mode 100644
index 0000000..779b3ef
--- /dev/null
+++ b/test/Object/archive-delete.test
@@ -0,0 +1,30 @@
+Test the 'd' operation in llvm-ar
+
+REQUIRES: shell
+
+RUN: cd %T
+
+RUN: rm -f test.a
+RUN: cp %p/Inputs/GNU.a test.a
+RUN: llvm-ar d test.a very_long_bytecode_file_name.bc
+RUN: llvm-ar t test.a | FileCheck %s
+
+RUN: rm -f test.a
+RUN: cp %p/Inputs/MacOSX.a test.a
+RUN: llvm-ar d test.a very_long_bytecode_file_name.bc
+RUN: llvm-ar t test.a | FileCheck %s
+
+RUN: rm -f test.a
+RUN: cp %p/Inputs/SVR4.a test.a
+RUN: llvm-ar d test.a very_long_bytecode_file_name.bc
+RUN: llvm-ar t test.a | FileCheck %s
+
+RUN: rm -f test.a
+RUN: cp %p/Inputs/xpg4.a test.a
+RUN: llvm-ar d test.a very_long_bytecode_file_name.bc
+RUN: llvm-ar t test.a | FileCheck %s
+
+
+CHECK: evenlen
+CHECK-NEXT: oddlen
+CHECK-NEXT: IsNAN.o