2 ; RUN: split-file %s %t
3 // Check that arch removal is accepted with tbdv5 and various inlined contents.
5 ; RUN: llvm-readtapi --remove -arch x86_64h %t/libfat.tbd -o %t/libslim.tbd 2>&1 | FileCheck --allow-empty %s
6 ; RUN: llvm-readtapi --compare %t/libslim.tbd %t/libslim_expected.tbd
8 ; RUN: llvm-readtapi --remove -arch x86_64h %t/libfat2.tbd -o %t/libslim2.tbd 2>&1 | FileCheck --allow-empty %s
9 ; RUN: llvm-readtapi --compare %t/libslim2.tbd %t/libslim_expected.tbd
11 ; RUN: llvm-readtapi --remove -arch x86_64 %t/libfat3.tbd -o %t/libslim3.tbd 2>&1 | FileCheck --allow-empty %s
12 ; RUN: llvm-readtapi --compare %t/libslim3.tbd %t/libslim3_expected.tbd
45 "name": "/usr/lib/internal/libfat.dylib"
55 "target": "x86_64-macos"
58 "target": "x86_64h-macos"
66 "name": "/usr/lib/libfat.dylib"
69 "reexported_libraries": [
72 "/usr/lib/internal/libfat.dylib"
78 "target": "x86_64-macos"
81 "target": "x86_64h-macos"
116 "name": "/usr/lib/internal/libfat.dylib"
119 "parent_umbrellas": [
126 "target": "x86_64-macos"
129 "target": "x86_64h-macos"
137 "name": "/usr/lib/libfat.dylib"
140 "reexported_libraries": [
143 "/usr/lib/internal/libfat.dylib"
149 "target": "x86_64-macos"
153 "tapi_tbd_version": 5
160 "exported_symbols": [
171 "name": "/usr/lib/internal/libfat.dylib"
176 "target": "x86_64-macos"
184 "name": "/usr/lib/libfat.dylib"
187 "reexported_libraries": [
190 "/usr/lib/internal/libfat.dylib"
199 "target": "x86_64-macos"
202 "target": "x86_64h-macos"
206 "tapi_tbd_version": 5
209 //--- libslim_expected.tbd
213 "exported_symbols": [
224 "name": "/usr/lib/internal/libfat.dylib"
227 "parent_umbrellas": [
234 "target": "x86_64-macos"
242 "name": "/usr/lib/libfat.dylib"
245 "reexported_libraries": [
248 "/usr/lib/internal/libfat.dylib"
254 "target": "x86_64-macos"
258 "tapi_tbd_version": 5
261 //--- libslim3_expected.tbd
266 "name": "/usr/lib/libfat.dylib"
271 "target": "x86_64h-macos"
275 "tapi_tbd_version": 5