1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/tools/llvm-ar/mri-delete.test
Martin Storsjo 1d8b300a4a [llvm-ar] Support * as comment char in MRI scripts
MRI scripts have two comment chars, * and ;, but only the latter was
supported before.

Also allow leading spaces before comment chars (and before any command
string), and allow comments after a command.

Differential Revision: https://reviews.llvm.org/D51338

llvm-svn: 341571
2018-09-06 18:10:45 +00:00

21 lines
555 B
Plaintext

RUN: yaml2obj %S/Inputs/elf.yaml -o %t.o
RUN: rm -f %t.ar
RUN: echo "create %t.ar;comment" > %t.mri
RUN: echo "addmod %t.o * comment" >> %t.mri
RUN: echo "; comment" >> %t.mri
RUN: echo " ;comment" >> %t.mri
RUN: echo "* comment" >> %t.mri
RUN: echo " *comment" >> %t.mri
RUN: echo "" >> %t.mri
RUN: echo " " >> %t.mri
RUN: echo "addmod %S/Inputs/elf.yaml" >> %t.mri
RUN: echo "delete %t.o" >> %t.mri
RUN: echo " save" >> %t.mri
RUN: echo "end" >> %t.mri
RUN: llvm-ar -M < %t.mri
RUN: llvm-ar tv %t.ar | FileCheck %s
CHECK-NOT: mri-delete.test{{.*}}.o