1 ## The END MRI command is optional. Scripts that omit
2 ## or include END should be handled by llvm-ar.
4 # RUN: rm -rf %t && split-file %s %t
7 # RUN: yaml2obj %S/Inputs/elf.yaml -o elf.o
10 # RUN: touch empty.mri
11 # RUN: llvm-ar -M < empty.mri
12 # RUN: llvm-ar -M < empty-end.mri
15 # RUN: llvm-ar -M < comment.mri
16 # RUN: llvm-ar -M < comment-end.mri
19 # RUN: llvm-ar -M < no-save.mri
20 # RUN: test ! -e no-save.ar
22 # RUN: llvm-ar -M < no-save-end.mri
23 # RUN: test ! -e no-save-end.ar
26 # RUN: llvm-ar -M < save.mri
27 # RUN: llvm-ar t save.ar | FileCheck %s
29 # RUN: llvm-ar -M < save-end.mri
30 # RUN: llvm-ar t save-end.ar | FileCheck %s
32 ## Duplicate use of END.
33 # RUN: llvm-ar -M < duplicate-end-no-save.mri
34 # RUN: test ! -e duplicate-end-no-save.ar
36 # RUN: llvm-ar -M < duplicate-end-save.mri
37 # RUN: llvm-ar t duplicate-end-save.ar | FileCheck %s
39 ## Use of END before saving.
40 # RUN: llvm-ar -M < end-before-save.mri
41 # RUN: llvm-ar t end-before-save.ar | FileCheck %s
75 #--- duplicate-end-no-save.mri
76 create duplicate-end-no-save.ar
81 #--- duplicate-end-save.mri
82 create duplicate-end-save.ar
88 #--- end-before-save.mri
89 create end-before-save.ar