xref: /aosp_15_r20/external/llvm/test/tools/llvm-ar/default-coff.test (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard WorkerRUN: yaml2obj %S/Inputs/coff.yaml -o %t.obj
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard WorkerRUN: rm -f %t.ar
4*9880d681SAndroid Build Coastguard WorkerRUN: llvm-ar crs %t.ar %t.obj
5*9880d681SAndroid Build Coastguard WorkerRUN: not grep -q __.SYMDEF %t.ar
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard WorkerEnsure that we generate a GNU style archive for COFF by default.  The GNU linker
8*9880d681SAndroid Build Coastguard Workerexpects that it will be in GNU format.  The lib format on Windows is compatible
9*9880d681SAndroid Build Coastguard Workerwith the GNU format.
10*9880d681SAndroid Build Coastguard Worker
11