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 RUN: llvm-ar crs %t.ar %t-coff.o
8 RUN: grep -q __.SYMDEF %t.ar
11 RUN: llvm-ar crs %t.ar %t-coff.o
12 RUN: not grep -q __.SYMDEF %t.ar
13 RUN: llvm-ar crs %t.ar %t-macho.o
14 RUN: not grep -q __.SYMDEF %t.ar
16 Ensure that we select the existing format when updating.