1 // RUN: %clang_cc1 -ast-print %s -o - | FileCheck %s
3 @interface NSObject @end
6 - (void)MethP __attribute__((availability(macosx,introduced=10.1.0,deprecated=10.2)));
9 @interface I : NSObject <P>
10 - (void)MethI __attribute__((availability(macosx,introduced=10.1.0,deprecated=10.2)));
14 - (void)MethCAT __attribute__((availability(macosx,introduced=10_1_0,deprecated=10_2)));
18 - (void)MethP __attribute__((availability(macosx,introduced=10.1.0,deprecated=10.2))) {}
19 - (void)MethI __attribute__((availability(macosx,introduced=10.1.0,deprecated=10.2))) {}
21 - (void)methodWithArg:(int)x andAnotherOne:(int)y { }
24 __attribute__((availability(macosx,introduced=10.1.0,deprecated=10.2)))
25 @interface InterfaceWithAttribute
29 // CHECK: - (void)MethP __attribute__((availability(macos, introduced=10.1.0, deprecated=10.2)));
32 // CHECK: @interface I : NSObject<P>
33 // CHECK: - (void)MethI __attribute__((availability(macos, introduced=10.1.0, deprecated=10.2)));
36 // CHECK: @interface I(CAT)
37 // CHECK: - (void)MethCAT __attribute__((availability(macos, introduced=10.1.0, deprecated=10.2)));
40 // CHECK: @implementation I
41 // CHECK: - (void)MethP __attribute__((availability(macos, introduced=10.1.0, deprecated=10.2))) {
44 // CHECK: - (void)MethI __attribute__((availability(macos, introduced=10.1.0, deprecated=10.2))) {
47 // CHECK: - (void)methodWithArg:(int)x andAnotherOne:(int)y {
52 // CHECK: __attribute__((availability(macos, introduced=10.1.0, deprecated=10.2)))
53 // CHECK: @interface InterfaceWithAttribute
57 struct __attribute__((objc_bridge_related(C1,,))) S1;
60 // CHECK: struct __attribute__((objc_bridge_related(C1, , ))) S1;
62 @interface ImplicitPropertyWithSetterOnly
68 void printImplicitPropertyWithSetterOnly(ImplicitPropertyWithSetterOnly *x) {
69 x.x = 313; // CHECK: x.x = 313;