
This brings our tree to NetBSD 7.0, as found on -current on the 10-10-2015. This updates: - LLVM to 3.6.1 - GCC to GCC 5.1 - Replace minix/commands/zdump with usr.bin/zdump - external/bsd/libelf has moved to /external/bsd/elftoolchain/ - Import ctwm - Drop sprintf from libminc Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
42 lines
1.3 KiB
Objective-C
42 lines
1.3 KiB
Objective-C
// RUN: %clang_cc1 -ast-print %s -o - | FileCheck %s
|
|
|
|
@interface NSObject @end
|
|
|
|
@protocol P
|
|
- (void)MethP __attribute__((availability(macosx,introduced=10.1.0,deprecated=10.2)));
|
|
@end
|
|
|
|
@interface I : NSObject <P>
|
|
- (void)MethI __attribute__((availability(macosx,introduced=10.1.0,deprecated=10.2)));
|
|
@end
|
|
|
|
@interface I(CAT)
|
|
- (void)MethCAT __attribute__((availability(macosx,introduced=10_1_0,deprecated=10_2)));
|
|
@end
|
|
|
|
@implementation I
|
|
- (void)MethP __attribute__((availability(macosx,introduced=10.1.0,deprecated=10.2))) {}
|
|
- (void)MethI __attribute__((availability(macosx,introduced=10.1.0,deprecated=10.2))) {}
|
|
@end
|
|
|
|
// CHECK: @protocol P
|
|
// CHECK: - (void) MethP __attribute__((availability(macosx, introduced=10.1.0, deprecated=10.2)));
|
|
// CHECK: @end
|
|
|
|
// CHECK: @interface I : NSObject<P>
|
|
// CHECK: - (void) MethI __attribute__((availability(macosx, introduced=10.1.0, deprecated=10.2)));
|
|
// CHECK: @end
|
|
|
|
// CHECK: @interface I(CAT)
|
|
// CHECK: - (void) MethCAT __attribute__((availability(macosx, introduced=10_1_0, deprecated=10_2)));
|
|
// CHECK: @end
|
|
|
|
// CHECK: @implementation I
|
|
// CHECK: - (void) MethP __attribute__((availability(macosx, introduced=10.1.0, deprecated=10.2))) {
|
|
// CHECK: }
|
|
|
|
// CHECK: - (void) MethI __attribute__((availability(macosx, introduced=10.1.0, deprecated=10.2))) {
|
|
// CHECK: }
|
|
|
|
// CHECK: @end
|