Home | History | Annotate | Download | only in Misc
      1 // RUN: %clang_cc1 -ast-print %s -o - | FileCheck %s
      2 
      3 @interface NSObject @end
      4 
      5 @protocol P
      6 - (void)MethP __attribute__((availability(macosx,introduced=10.1.0,deprecated=10.2)));
      7 @end
      8 
      9 @interface I : NSObject <P>
     10 - (void)MethI __attribute__((availability(macosx,introduced=10.1.0,deprecated=10.2)));
     11 @end
     12 
     13 @interface I(CAT)
     14 - (void)MethCAT __attribute__((availability(macosx,introduced=10_1_0,deprecated=10_2)));
     15 @end
     16 
     17 @implementation I
     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))) {}
     20 @end
     21 
     22 // CHECK: @protocol P
     23 // CHECK: - (void) MethP __attribute__((availability(macos, introduced=10.1.0, deprecated=10.2)));
     24 // CHECK: @end
     25 
     26 // CHECK: @interface I : NSObject<P> 
     27 // CHECK: - (void) MethI __attribute__((availability(macos, introduced=10.1.0, deprecated=10.2)));
     28 // CHECK: @end
     29 
     30 // CHECK: @interface I(CAT)
     31 // CHECK: - (void) MethCAT __attribute__((availability(macos, introduced=10_1_0, deprecated=10_2)));
     32 // CHECK: @end
     33 
     34 // CHECK: @implementation I
     35 // CHECK: - (void) MethP __attribute__((availability(macos, introduced=10.1.0, deprecated=10.2))) {
     36 // CHECK: }
     37 
     38 // CHECK: - (void) MethI __attribute__((availability(macos, introduced=10.1.0, deprecated=10.2))) {
     39 // CHECK: }
     40 
     41 // CHECK: @end
     42