summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2018-09-06 18:10:45 +0000
committerMartin Storsjo <martin@martin.st>2018-09-06 18:10:45 +0000
commit1e8edd13ee60d59a3b9c578f6be0d9a3cf6e1bd2 (patch)
treea5c57b8b7e10f4b04fc2f664fcd6fee03555eb1d /llvm/test/tools
parentd2c1dd5902782fb773c64dbf4e0b529aa4044b05 (diff)
downloadbcm5719-llvm-1e8edd13ee60d59a3b9c578f6be0d9a3cf6e1bd2.tar.gz
bcm5719-llvm-1e8edd13ee60d59a3b9c578f6be0d9a3cf6e1bd2.zip
[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
Diffstat (limited to 'llvm/test/tools')
-rw-r--r--llvm/test/tools/llvm-ar/mri-delete.test12
1 files changed, 9 insertions, 3 deletions
diff --git a/llvm/test/tools/llvm-ar/mri-delete.test b/llvm/test/tools/llvm-ar/mri-delete.test
index 82ebc54b66b..bb829ce13c7 100644
--- a/llvm/test/tools/llvm-ar/mri-delete.test
+++ b/llvm/test/tools/llvm-ar/mri-delete.test
@@ -1,11 +1,17 @@
RUN: yaml2obj %S/Inputs/elf.yaml -o %t.o
RUN: rm -f %t.ar
-RUN: echo "create %t.ar" > %t.mri
-RUN: echo "addmod %t.o" >> %t.mri
+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 " save" >> %t.mri
RUN: echo "end" >> %t.mri
RUN: llvm-ar -M < %t.mri
OpenPOWER on IntegriCloud