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