xref: /aosp_15_r20/external/llvm/test/tools/llvm-ar/default-add.test (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard WorkerRUN: yaml2obj %S/Inputs/macho.yaml -o %t-macho.o
2*9880d681SAndroid Build Coastguard WorkerRUN: yaml2obj %S/Inputs/coff.yaml -o %t-coff.o
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard WorkerRUN: rm -f %t.ar
5*9880d681SAndroid Build Coastguard WorkerRUN: llvm-ar crs %t.ar %t-macho.o
6*9880d681SAndroid Build Coastguard WorkerRUN: grep -q __.SYMDEF %t.ar
7*9880d681SAndroid Build Coastguard WorkerRUN: llvm-ar crs %t.ar %t-coff.o
8*9880d681SAndroid Build Coastguard WorkerRUN: grep -q __.SYMDEF %t.ar
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard WorkerRUN: rm -f %t.ar
11*9880d681SAndroid Build Coastguard WorkerRUN: llvm-ar crs %t.ar %t-coff.o
12*9880d681SAndroid Build Coastguard WorkerRUN: not grep -q __.SYMDEF %t.ar
13*9880d681SAndroid Build Coastguard WorkerRUN: llvm-ar crs %t.ar %t-macho.o
14*9880d681SAndroid Build Coastguard WorkerRUN: not grep -q __.SYMDEF %t.ar
15*9880d681SAndroid Build Coastguard Worker
16*9880d681SAndroid Build Coastguard WorkerEnsure that we select the existing format when updating.
17*9880d681SAndroid Build Coastguard Worker
18