From 3a942ac858ab6169aca6f9649b3567fb56a89164 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 11 Jul 2013 19:09:04 +0000 Subject: [PATCH] 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 --- test/Object/archive-move.test | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 test/Object/archive-move.test diff --git a/test/Object/archive-move.test b/test/Object/archive-move.test new file mode 100644 index 00000000000..c1c59ada50f --- /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