Home | History | Annotate | Download | only in Object
      1 Test the 'm' operation in llvm-ar
      2 
      3 RUN: cd %T
      4 
      5 RUN: rm -f %t.a
      6 RUN: cp %p/Inputs/GNU.a %t.a
      7 RUN: llvm-ar m %t.a very_long_bytecode_file_name.bc
      8 RUN: llvm-ar t %t.a | FileCheck %s
      9 
     10 RUN: rm -f %t.a
     11 RUN: cp %p/Inputs/MacOSX.a %t.a
     12 RUN: llvm-ar m %t.a very_long_bytecode_file_name.bc
     13 RUN: llvm-ar t %t.a | FileCheck %s
     14 
     15 RUN: rm -f %t.a
     16 RUN: cp %p/Inputs/SVR4.a %t.a
     17 RUN: llvm-ar m %t.a very_long_bytecode_file_name.bc
     18 RUN: llvm-ar t %t.a | FileCheck %s
     19 
     20 RUN: rm -f %t.a
     21 RUN: cp %p/Inputs/xpg4.a %t.a
     22 RUN: llvm-ar m %t.a very_long_bytecode_file_name.bc
     23 RUN: llvm-ar t %t.a | FileCheck %s
     24 
     25 CHECK: evenlen
     26 CHECK-NEXT: oddlen
     27 CHECK-NEXT: IsNAN.o
     28 CHECK-NEXT: very_long_bytecode_file_name.bc
     29 
     30 RUN: rm -f %t.a
     31 RUN: cp %p/Inputs/GNU.a %t.a
     32 RUN: llvm-ar mb evenlen %t.a very_long_bytecode_file_name.bc
     33 RUN: llvm-ar t %t.a | FileCheck --check-prefix=BEFORE %s
     34 
     35 BEFORE: very_long_bytecode_file_name.bc
     36 BEFORE-NEXT: evenlen
     37 BEFORE-NEXT: oddlen
     38 BEFORE-NEXT: IsNAN.o
     39 
     40 RUN: rm -f %t.a
     41 RUN: cp %p/Inputs/GNU.a %t.a
     42 RUN: llvm-ar ma evenlen %t.a very_long_bytecode_file_name.bc
     43 RUN: llvm-ar t %t.a | FileCheck --check-prefix=AFTER %s
     44 
     45 AFTER: evenlen
     46 AFTER-NEXT: very_long_bytecode_file_name.bc
     47 AFTER-NEXT: oddlen
     48 AFTER-NEXT: IsNAN.o
     49