1 RUN: yaml2obj %S/Inputs/macho.yaml -o %t-macho.o
2 RUN: yaml2obj %S/Inputs/coff.yaml -o %t-coff.o
5 RUN: llvm-ar crs %t.ar %t-macho.o
6 RUN: grep -q __.SYMDEF %t.ar
7 Test that an option string prefixed by a dash works.
8 RUN: llvm-ar -crs %t.ar %t-coff.o
9 RUN: grep -q __.SYMDEF %t.ar
12 RUN: llvm-ar crs %t.ar %t-coff.o
13 RUN: not grep -q __.SYMDEF %t.ar
14 RUN: llvm-ar crs %t.ar %t-macho.o
15 RUN: not grep -q __.SYMDEF %t.ar
17 Ensure that we select the existing format when updating.