2016-06-28 03:53:53 +08:00
|
|
|
RUN: yaml2obj %S/Inputs/macho.yaml -o %t-macho.o
|
|
|
|
RUN: yaml2obj %S/Inputs/coff.yaml -o %t-coff.o
|
2019-07-16 20:53:59 +08:00
|
|
|
RUN: yaml2obj %S/Inputs/elf.yaml -o %t-elf.o
|
2016-06-25 11:05:56 +08:00
|
|
|
|
|
|
|
RUN: rm -f %t.ar
|
|
|
|
RUN: llvm-ar crs %t.ar %t-macho.o
|
|
|
|
RUN: grep -q __.SYMDEF %t.ar
|
|
|
|
|
|
|
|
RUN: rm -f %t.ar
|
|
|
|
RUN: llvm-ar crs %t.ar %t-coff.o
|
|
|
|
RUN: not grep -q __.SYMDEF %t.ar
|
|
|
|
RUN: llvm-ar crs %t.ar %t-macho.o
|
|
|
|
RUN: not grep -q __.SYMDEF %t.ar
|
2019-07-16 20:53:59 +08:00
|
|
|
RUN: llvm-ar crs %t.ar %t-elf.o
|
|
|
|
RUN: not grep -q __.SYMDEF %t.ar
|
2018-03-29 01:21:14 +08:00
|
|
|
|
|
|
|
RUN: rm -f %t.ar
|
|
|
|
Test with the options in a different order.
|
|
|
|
RUN: llvm-ar rsc %t.ar %t-macho.o
|
2019-07-16 20:53:59 +08:00
|
|
|
RUN: grep -q __.SYMDEF %t.ar
|