1RUN: yaml2obj %S/Inputs/macho.yaml -o %t-macho.o 2RUN: yaml2obj %S/Inputs/coff.yaml -o %t-coff.o 3 4RUN: rm -f %t.ar 5RUN: llvm-ar crs %t.ar %t-macho.o 6RUN: grep -q __.SYMDEF %t.ar 7RUN: llvm-ar crs %t.ar %t-coff.o 8RUN: grep -q __.SYMDEF %t.ar 9 10RUN: rm -f %t.ar 11RUN: llvm-ar crs %t.ar %t-coff.o 12RUN: not grep -q __.SYMDEF %t.ar 13RUN: llvm-ar crs %t.ar %t-macho.o 14RUN: not grep -q __.SYMDEF %t.ar 15 16Ensure that we select the existing format when updating. 17 18