2 // RUN: split-file %s %t
3 // RUN: sed -e "s|DSTROOT|%/t|g" %t/inputs.json.in > %t/inputs.json
5 // RUN: clang-installapi -target arm64-apple-macos13.1 \
6 // RUN: -I%t/usr/include -I%t/usr/local/include -dynamiclib \
7 // RUN: -install_name @rpath/lib/libfunctions.dylib --filetype=tbd-v4 \
8 // RUN: %t/inputs.json -o %t/outputs.tbd 2>&1 | FileCheck %s --allow-empty
9 // RUN: llvm-readtapi -compare %t/outputs.tbd %t/expected.tbd 2>&1 | FileCheck %s --allow-empty
12 // CHECK-NOT: warning:
14 //--- usr/include/functions.h
15 inline int inlined_func(void) { return 1;}
18 //--- usr/local/include/private_functions.h
19 __attribute__((visibility("hidden")))
25 "path" : "DSTROOT/usr/include/functions.h",
29 "path" : "DSTROOT/usr/local/include/private_functions.h",
39 "compatibility_versions": [
61 "not_app_extension_safe"
67 "name": "@rpath/lib/libfunctions.dylib"
72 "min_deployment": "13.1",
73 "target": "arm64-macos"