brintos

brintos / llvm-project-archived public Read only

0
0
Text · 938 B · 8159f03 Raw
25 lines · plain
1# REQUIRES: x862 3## For a long time, LLD only included those members from thin archives that were actually used4## during linking. However, we need to iterate over all members for -ObjC, check that we don't5## crash when we encounter a missing member.6 7# RUN: rm -rf %t && mkdir %t && cd %t8# RUN: sed s/SYM/_main/   %s | llvm-mc -filetype=obj -triple=x86_64-apple-macos -o main.o9# RUN: sed s/SYM/_unused/ %s | llvm-mc -filetype=obj -triple=x86_64-apple-macos -o unused.o10 11# RUN: llvm-ar rcsT unused.a unused.o; rm unused.o12## FIXME: Absolute paths don't end up relativized in the repro file.13 14# RUN: %no-fatal-warnings-lld %t/main.o %t/unused.a -ObjC -o /dev/null 2>&1 \15# RUN:                      | FileCheck %s --check-prefix=WARN16 17# RUN: %lld main.o unused.a -ObjC --no-warn-thin-archive-missing-members 2>&1 | count 018 19# WARN: warning: {{.*}}unused.a: -ObjC failed to open archive member: 'unused.o'20 21.text22.globl SYM23SYM:24    ret25