2 # UNSUPPORTED: system-windows
4 # RUN: rm -rf %t && split-file %s %t && cd %t
5 # RUN: llvm-mc -filetype=obj -triple=x86_64 a.s -o a.o
6 # RUN: llvm-mc -filetype=obj -triple=x86_64 b.s -o b.o
8 ## Create an archive with incomplete index: foo is missing.
9 # RUN: llvm-ar --format=gnu rc a.a a.o
10 # RUN: llvm-ar --format=gnu rcS b.a b.o && tail -c +9 b.a > b-tail
11 # RUN: cat a.a b-tail > weird.a
12 # RUN: llvm-nm --print-armap weird.a | FileCheck %s --check-prefix=ARMAP
15 # ARMAP-NEXT: _start in a.o
18 ## The incomplete archive index is ignored. -u foo extracts weird.a(b.o).
19 ## In GNU ld, foo is undefined.
20 # RUN: ld.lld -m elf_x86_64 -u foo weird.a -o lazy
21 # RUN: llvm-nm lazy | FileCheck %s --implicit-check-not={{.}}
23 # CHECK: [[#%x,]] T _start
24 # CHECK: [[#%x,]] T foo