blob: 88719e4efce3c9193dc2e51c9394460f44539db6 [file] [log] [blame]
Chris Bieneman8ff0c112016-06-27 19:53:53 +00001RUN: yaml2obj %S/Inputs/macho.yaml -o %t-macho.o
2RUN: yaml2obj %S/Inputs/coff.yaml -o %t-coff.o
Saleem Abdulrasool92d33bd2016-06-25 03:05:56 +00003
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