| // RUN: sed -e "s|DSTROOT|%/t|g" %t/inputs.json.in > %t/inputs.json |
| // RUN: clang-installapi -target arm64-apple-macos13.1 \ |
| // RUN: -I%t/usr/include -I%t/usr/local/include -dynamiclib \ |
| // RUN: -install_name @rpath/lib/libfunctions.dylib --filetype=tbd-v4 \ |
| // RUN: %t/inputs.json -o %t/outputs.tbd 2>&1 | FileCheck %s --allow-empty |
| // RUN: llvm-readtapi -compare %t/outputs.tbd %t/expected.tbd 2>&1 | FileCheck %s --allow-empty |
| //--- usr/include/functions.h |
| inline int inlined_func(void) { return 1;} |
| //--- usr/local/include/private_functions.h |
| __attribute__((visibility("hidden"))) |
| "path" : "DSTROOT/usr/include/functions.h", |
| "path" : "DSTROOT/usr/local/include/private_functions.h", |
| "compatibility_versions": [ |
| "name": "@rpath/lib/libfunctions.dylib" |
| "min_deployment": "13.1", |