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 -dynamiclib \
7 // RUN: -install_name @rpath/lib/libasm.dylib \
8 // RUN: %t/inputs.json -o %t/output.tbd 2>&1 | FileCheck %s --allow-empty
9 // RUN: llvm-readtapi -compare %t/output.tbd %t/expected.tbd 2>&1 | FileCheck %s --allow-empty
12 // CHECK-NOT: warning:
14 //--- usr/include/asm.h
18 extern int ivar __asm("_OBJC_IVAR_$_SomeClass._ivar1");
19 extern int objcClass1 __asm("_OBJC_CLASS_$_SomeClass");
20 extern int objcClass2 __asm("_OBJC_METACLASS_$_SomeClass");
21 extern int objcClass3 __asm("_OBJC_EHTYPE_$_SomeClass");
22 extern int objcClass4 __asm(".objc_class_name_SomeClass");
24 __attribute__((visibility("hidden")))
29 extern int ivarExtra __asm("_OBJC_IVAR_$_NSString._ivar1");
35 "path" : "DSTROOT/usr/include/asm.h",
44 "compatibility_versions": [
73 "not_app_extension_safe"
79 "name": "@rpath/lib/libasm.dylib"
84 "min_deployment": "13.1",
85 "target": "arm64-macos"