36 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -verify %s2// expected-no-diagnostics3typedef signed char BOOL;4typedef struct _NSZone NSZone;5 6@protocol NSObject7- (BOOL)isEqual:(id)object;8@end9 10@protocol NSCopying11- (id)copyWithZone:(NSZone *)zone;12@end13 14@interface NSObject <NSObject> {}15@end16 17@class NSString, NSData, NSMutableData, NSMutableDictionary, NSMutableArray;18 19@interface SCMObject : NSObject <NSCopying> {}20 @property(assign) SCMObject *__attribute__((objc_gc(weak))) parent;21@end22 23@interface SCMNode : SCMObject24{25 NSString *_name;26}27@property(copy) NSString *name;28@end29 30@implementation SCMNode31 @synthesize name = _name;32 - (void) setParent:(SCMObject *__attribute__((objc_gc(weak)))) inParent {33 super.parent = inParent;34 }35@end36