1 # REQUIRES: aarch64, shell
2 # RUN: rm -rf %t; split-file %s %t
3 # RUN: ln -s Versions/A/FrameworkPublic.tbd %t/System/Library/Frameworks/FrameworkPublic.framework/
4 # RUN: ln -s Versions/A/FrameworkPrivate.tbd %t/System/Library/Frameworks/FrameworkPrivate.framework/
5 # RUN: llvm-mc -filetype obj -triple arm64-apple-macos11.0 %t/test.s -o %t/test.o
6 # RUN: %lld -arch arm64 -platform_version macos 11.0 11.0 -o %t/test -syslibroot %t -framework FrameworkPublic %t/test.o
8 # RUN: llvm-objdump --bind --no-show-raw-insn -d %t/test | FileCheck %s
10 # CHECK-DAG: __DATA __data {{.*}} pointer 0 FrameworkPublic _funcPublic
11 # CHECK-DAG: __DATA __data {{.*}} pointer 0 FrameworkPublic _funcPrivate
13 #--- System/Library/Frameworks/FrameworkPublic.framework/Versions/A/FrameworkPublic.tbd
16 targets: [ arm64-macos ]
17 install-name: '/System/Library/Frameworks/FrameworkPublic.framework/Versions/A/FrameworkPublic'
18 current-version: 1.0.0
20 - targets: [ arm64-macos ]
21 libraries: [ '/System/Library/Frameworks/FrameworkPrivate.framework/Versions/A/FrameworkPrivate' ]
23 - targets: [ arm64-macos ]
24 symbols: [ '_funcPublic' ]
26 #--- System/Library/Frameworks/FrameworkPrivate.framework/Versions/A/FrameworkPrivate.tbd
29 targets: [ arm64-macos ]
30 install-name: '/System/Library/Frameworks/FrameworkPrivate.framework/Versions/A/FrameworkPrivate'
31 current-version: 1.0.0
33 - targets: [ arm64-macos ]
34 clients: [ FrameworkPublic ]
36 - targets: [ arm64-macos ]
37 symbols: [ '_funcPrivate' ]