blob: 525db85d3a58726048c25b065525d906d831226b [file] [log] [blame]
Saleem Abdulrasool92d33bd2016-06-25 03:05:56 +00001RUN: yaml2obj -format macho %S/Inputs/macho.yaml -o %t-macho.o
2RUN: yaml2obj -format coff %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