// RUN: rm -rf %t // RUN: mkdir %t // RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng -target x86_64-apple-macosx26.0 %s > %t/out // RUN: FileCheck %s < %t/out // Ensure that XML we generate is not invalid. // RUN: FileCheck %s -check-prefix=WRONG < %t/out // WRONG-NOT: CommentXMLInvalid // Test that anyAppleOS availability emits two entries in XML: // one for the original anyAppleOS attr and one for the inferred platform attr. /// Aaa. void attr_anyappleos_1() __attribute__((availability(anyAppleOS, introduced=26.0))); // CHECK: FullCommentAsXML=[attr_anyappleos_1c:@F@attr_anyappleos_1#void attr_anyappleos_1() Aaa.26.026.0] /// Aaa. void attr_anyappleos_2() __attribute__((availability(anyAppleOS, introduced=26.0, deprecated=27.0, message="use something else"))); // CHECK: FullCommentAsXML=[attr_anyappleos_2c:@F@attr_anyappleos_2#void attr_anyappleos_2() Aaa.26.027.0use something else26.027.0use something else] /// Aaa. void attr_anyappleos_3() __attribute__((availability(anyAppleOS, unavailable, message="not available"))); // CHECK: FullCommentAsXML=[attr_anyappleos_3c:@F@attr_anyappleos_3#void attr_anyappleos_3() Aaa.not availablenot available]