3 # RUN: rm -rf %t; split-file %s %t
4 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t/main.o %t/main.s
6 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t/lib.o \
7 # RUN: %t/mangled-symbol.s
8 # RUN: llvm-ar csr %t/lib.a %t/lib.o
9 # RUN: llvm-ar csrT %t/lib_thin.a %t/lib.o
11 # RUN: %lld %t/main.o %t/lib.a -o %t/out
13 # RUN: %lld %t/main.o %t/lib_thin.a -o %t/out
15 # RUN: %lld %t/main.o -force_load %t/lib_thin.a -o %t/out
19 # RUN: %lld %t/main.o %t/lib.a -o %t/out
21 # RUN: not %lld %t/main.o %t/lib_thin.a -demangle -o %t/out 2>&1 | \
22 # RUN: FileCheck --check-prefix=NOOBJ %s
23 # RUN: not %lld %t/main.o %t/lib_thin.a -o %t/out 2>&1 | \
24 # RUN: FileCheck --check-prefix=NOOBJNODEMANGLE %s
28 # NOOBJ: error: {{.*}}lib_thin.a: could not get the member defining symbol f(): '{{.*}}lib.o': {{[N|n]}}o such file or directory
29 # NOOBJNODEMANGLE: error: {{.*}}lib_thin.a: could not get the member defining symbol __Z1fv: '{{.*}}lib.o': {{[N|n]}}o such file or directory