43 lines · plain
1# REQUIRES: x862# RUN: rm -rf %t; split-file %s %t3 4# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t/foo.o %t/foo.s5# RUN: %lld -dylib -o %t/libfoo.dylib %t/foo.o6# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t/bar.o %t/bar.s7# RUN: llvm-ar csr %t/bar.a %t/bar.o8# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t/main.o %t/main.s9 10# RUN: %lld %t/main.o %t/bar.a %t/libfoo.dylib -lSystem -o %t/test.out -dependency_info %t/deps_info.out11# RUN: %python %S/Inputs/DependencyDump.py %t/deps_info.out | FileCheck %s12 13# CHECK: lld-version: {{.*}}LLD {{.*}}14 15# CHECK-DAG: input-file: {{.*}}{{[/\]}}bar.a16# CHECK-DAG: input-file: {{.*}}{{[/\]}}libfoo.dylib17# CHECK-DAG: input-file: {{.*}}{{[/\]}}libSystem.tbd18# CHECK-DAG: input-file: {{.*}}{{[/\]}}main.o19# CHECK-DAG: input-file: {{.*}}bar.o20 21# CHECK: not-found: {{.*}}{{[/\]}}libdyld.{{.*}}22## There could be more not-found here but we are not checking those because it's brittle.23 24# CHECK: output-file: {{.*}}{{[/\]}}test.out25 26#--- foo.s27.globl __Z3foo28__Z3foo:29 ret30 31#--- bar.s32.globl _bar33_bar:34 callq __Z3foo35 ret36 37#--- main.s38.globl _main39_main:40 callq _bar41 callq __Z3foo42 ret43