1 RUN: yaml2obj %S/Inputs/macho.yaml -o %t-macho.o
2 RUN: yaml2obj %S/Inputs/coff.yaml -o %t-coff.o
3 RUN: yaml2obj %S/Inputs/elf.yaml -o %t-elf.o
6 RUN: llvm-ar crs %t.ar %t-macho.o
7 RUN: grep -q __.SYMDEF %t.ar
10 RUN: llvm-ar crs %t.ar %t-coff.o
11 RUN: not grep -q __.SYMDEF %t.ar
12 RUN: llvm-ar crs %t.ar %t-macho.o
13 RUN: not grep -q __.SYMDEF %t.ar
14 RUN: llvm-ar crs %t.ar %t-elf.o
15 RUN: not grep -q __.SYMDEF %t.ar
18 Test with the options in a different order.
19 RUN: llvm-ar rsc %t.ar %t-macho.o
20 RUN: grep -q __.SYMDEF %t.ar