2013-07-11 21:24:27 +08:00
|
|
|
Test the 'd' operation in llvm-ar
|
|
|
|
|
2017-08-21 02:18:44 +08:00
|
|
|
RUN: rm -rf %t && mkdir -p %t && cd %t
|
2013-07-11 21:24:27 +08:00
|
|
|
|
2013-07-11 21:31:38 +08:00
|
|
|
RUN: rm -f %t.a
|
|
|
|
RUN: cp %p/Inputs/GNU.a %t.a
|
|
|
|
RUN: llvm-ar d %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 d %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 d %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 d %t.a very_long_bytecode_file_name.bc
|
|
|
|
RUN: llvm-ar t %t.a | FileCheck %s
|
2013-07-11 21:24:27 +08:00
|
|
|
|
|
|
|
|
|
|
|
CHECK: evenlen
|
|
|
|
CHECK-NEXT: oddlen
|
|
|
|
CHECK-NEXT: IsNAN.o
|