]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/tools/llvm-ar/default-add.test
Vendor import of llvm trunk r321017:
[FreeBSD/FreeBSD.git] / test / tools / llvm-ar / default-add.test
1 RUN: yaml2obj %S/Inputs/macho.yaml -o %t-macho.o
2 RUN: yaml2obj %S/Inputs/coff.yaml -o %t-coff.o
3
4 RUN: rm -f %t.ar
5 RUN: llvm-ar crs %t.ar %t-macho.o
6 RUN: grep -q __.SYMDEF %t.ar
7 Test that an option string prefixed by a dash works.
8 RUN: llvm-ar -crs %t.ar %t-coff.o
9 RUN: grep -q __.SYMDEF %t.ar
10
11 RUN: rm -f %t.ar
12 RUN: llvm-ar crs %t.ar %t-coff.o
13 RUN: not grep -q __.SYMDEF %t.ar
14 RUN: llvm-ar crs %t.ar %t-macho.o
15 RUN: not grep -q __.SYMDEF %t.ar
16
17 Ensure that we select the existing format when updating.
18