diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-11 19:09:04 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-11 19:09:04 +0000 |
commit | 3a942ac858ab6169aca6f9649b3567fb56a89164 (patch) | |
tree | 5d31c0250144a8e2eab38880db028d1ec1de499e /test/Object | |
parent | e2ff00e117ba9b758b298e671f65c0b002f8a52d (diff) | |
download | external_llvm-3a942ac858ab6169aca6f9649b3567fb56a89164.zip external_llvm-3a942ac858ab6169aca6f9649b3567fb56a89164.tar.gz external_llvm-3a942ac858ab6169aca6f9649b3567fb56a89164.tar.bz2 |
Add a test for llvm-ar's m operation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186110 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Object')
-rw-r--r-- | test/Object/archive-move.test | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/Object/archive-move.test b/test/Object/archive-move.test new file mode 100644 index 0000000..c1c59ad --- /dev/null +++ b/test/Object/archive-move.test @@ -0,0 +1,30 @@ +Test the 'm' operation in llvm-ar + +REQUIRES: shell + +RUN: cd %T + +RUN: rm -f %t.a +RUN: cp %p/Inputs/GNU.a %t.a +RUN: llvm-ar m %t.a very_long_bytecode_file_name.bc +RUN: llvm-ar t %t.a | FileCheck %s + +RUN: rm -f %t.a +RUN: cp %p/Inputs/MacOSX.a %t.a +RUN: llvm-ar m %t.a very_long_bytecode_file_name.bc +RUN: llvm-ar t %t.a | FileCheck %s + +RUN: rm -f %t.a +RUN: cp %p/Inputs/SVR4.a %t.a +RUN: llvm-ar m %t.a very_long_bytecode_file_name.bc +RUN: llvm-ar t %t.a | FileCheck %s + +RUN: rm -f %t.a +RUN: cp %p/Inputs/xpg4.a %t.a +RUN: llvm-ar m %t.a very_long_bytecode_file_name.bc +RUN: llvm-ar t %t.a | FileCheck %s + +CHECK: evenlen +CHECK-NEXT: oddlen +CHECK-NEXT: IsNAN.o +CHECK-NEXT: very_long_bytecode_file_name.bc |