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 { }
25 // CHECK: - (void)MethP __attribute__((availability(macos, introduced=10.1.0, deprecated=10.2)));
28 // CHECK: @interface I : NSObject<P>
29 // CHECK: - (void)MethI __attribute__((availability(macos, introduced=10.1.0, deprecated=10.2)));
32 // CHECK: @interface I(CAT)
33 // CHECK: - (void)MethCAT __attribute__((availability(macos, introduced=10.1.0, deprecated=10.2)));
36 // CHECK: @implementation I
37 // CHECK: - (void)MethP __attribute__((availability(macos, introduced=10.1.0, deprecated=10.2))) {
40 // CHECK: - (void)MethI __attribute__((availability(macos, introduced=10.1.0, deprecated=10.2))) {
43 // CHECK: - (void)methodWithArg:(int)x andAnotherOne:(int)y {
49 struct __attribute__((objc_bridge_related(C1,,))) S1;
52 // CHECK: struct __attribute__((objc_bridge_related(C1, , ))) S1;
54 @interface ImplicitPropertyWithSetterOnly
60 void printImplicitPropertyWithSetterOnly(ImplicitPropertyWithSetterOnly *x) {
61 x.x = 313; // CHECK: x.x = 313;