#if !__has_feature(attribute_availability_with_version_underscores)
# error "missing feature"
#endif
@protocol P
- (void)proto_method __attribute__((availability(macosx,introduced=10_1,deprecated=10_2))); @end
@interface A <P>
- (void)method __attribute__((availability(macosx,introduced=10_1,deprecated=10_2)));
- (void)overridden __attribute__((availability(macosx,introduced=10_3))); - (void)overridden2 __attribute__((availability(macosx,introduced=10_3)));
- (void)overridden3 __attribute__((availability(macosx,deprecated=10_3)));
- (void)overridden4 __attribute__((availability(macosx,deprecated=10_3))); - (void)overridden5 __attribute__((availability(macosx,unavailable)));
- (void)overridden6 __attribute__((availability(macosx,introduced=10_3))); @end
@interface B : A
- (void)method; - (void)overridden __attribute__((availability(macosx,introduced=10_4))); - (void)overridden2 __attribute__((availability(macosx,introduced=10_2)));
- (void)overridden3 __attribute__((availability(macosx,deprecated=10_4)));
- (void)overridden4 __attribute__((availability(macosx,deprecated=10_2))); - (void)overridden5 __attribute__((availability(macosx,introduced=10_3)));
- (void)overridden6 __attribute__((availability(macosx,unavailable))); @end
void f(A *a, B *b) {
[a method]; [b method]; [a proto_method]; [b proto_method]; }
@interface C
- (void) method __attribute__((availability(macosx,introduced=10_1,deprecated=10_2))); @end
@interface D : C
- (void) method;
@end
@interface E : D
- (void) method;
@end
@implementation D
- (void) method {
[super method]; }
@end
@implementation E
- (void) method {
[super method]; }
@end
@class NSMutableArray;
@interface NSDictionary
+ (instancetype)dictionaryWithObjectsAndKeys:(id)firstObject, ... __attribute__((sentinel(0,1)));
@end
@class NSString;
extern NSString *NSNibTopLevelObjects __attribute__((availability(macosx,introduced=10_0 ,deprecated=10_8,message="" )));
id NSNibOwner, topNibObjects;
@interface AppDelegate (SIEImport)
-(void)__attribute__((ibaction))importFromSIE:(id)sender;
@end
@implementation AppDelegate (SIEImport)
-(void)__attribute__((ibaction))importFromSIE:(id)sender {
NSMutableArray *topNibObjects;
NSDictionary *nibLoadDict = [NSDictionary dictionaryWithObjectsAndKeys:self, NSNibOwner, topNibObjects, NSNibTopLevelObjects, ((void *)0)];
}
@end
@interface Mixed
- (void)Meth1 __attribute__((availability(macosx,introduced=10.3_0))); - (void)Meth2 __attribute__((availability(macosx,introduced=10_3.1))); @end
@protocol P18804883
- (void)proto_method __attribute__((availability(macosx,introduced=10_1,deprecated=NA))); @end
@interface A18804883 <P18804883>
- (void)interface_method __attribute__((availability(macosx,introduced=NA))); - (void)strange_method __attribute__((availability(macosx,introduced=NA,deprecated=NA))); - (void) always_available __attribute__((availability(macosx,deprecated=NA)));
@end
void foo (A18804883* pa) {
[pa interface_method]; [pa proto_method];
[pa strange_method]; [pa always_available];
}