blob: 68e41c249100c6c97c685a762a898b1eea4de268 [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
Martin Storsjo1a9593b2017-11-03 20:09:10 +00007Test that an option string prefixed by a dash works.
8RUN: llvm-ar -crs %t.ar %t-coff.o
Saleem Abdulrasool92d33bd2016-06-25 03:05:56 +00009RUN: grep -q __.SYMDEF %t.ar
10
11RUN: rm -f %t.ar
12RUN: llvm-ar crs %t.ar %t-coff.o
13RUN: not grep -q __.SYMDEF %t.ar
14RUN: llvm-ar crs %t.ar %t-macho.o
15RUN: not grep -q __.SYMDEF %t.ar
16
17Ensure that we select the existing format when updating.
18