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
This commit is contained in:
Rafael Espindola 2013-07-11 19:09:04 +00:00
parent e2ff00e117
commit 3a942ac858

View File

@ -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