1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/tools/llvm-ar/mri-comments.test
Fangrui Song 02b17f57fa [llvm-ar][test] \r\n -> \n
Also simplify some empty output tests with 'count 0'

llvm-svn: 366324
2019-07-17 13:40:42 +00:00

20 lines
578 B
Plaintext

# Test different MRI comment formats and white space.
RUN: rm -rf %t && mkdir -p %t
RUN: yaml2obj %S/Inputs/elf.yaml -o %t/elf.o
RUN: echo "create %t/mri.ar;comment" > %t/script.mri
RUN: echo "addmod %t/elf.o * comment" >> %t/script.mri
RUN: echo "; comment" >> %t/script.mri
RUN: echo " ;comment" >> %t/script.mri
RUN: echo "* comment" >> %t/script.mri
RUN: echo " *comment" >> %t/script.mri
RUN: echo "" >> %t/script.mri
RUN: echo " " >> %t/script.mri
RUN: echo " save" >> %t/script.mri
RUN: llvm-ar -M < %t/script.mri
RUN: llvm-ar t %t/mri.ar | FileCheck %s
CHECK: elf.o