1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fsyntax-only -verify %s 2*f4a2713aSLionel Sambuc// expected-no-diagnostics 3*f4a2713aSLionel Sambuctypedef signed char BOOL; 4*f4a2713aSLionel Sambuctypedef struct _NSZone NSZone; 5*f4a2713aSLionel Sambuc 6*f4a2713aSLionel Sambuc@protocol NSObject 7*f4a2713aSLionel Sambuc- (BOOL)isEqual:(id)object; 8*f4a2713aSLionel Sambuc@end 9*f4a2713aSLionel Sambuc 10*f4a2713aSLionel Sambuc@protocol NSCopying 11*f4a2713aSLionel Sambuc- (id)copyWithZone:(NSZone *)zone; 12*f4a2713aSLionel Sambuc@end 13*f4a2713aSLionel Sambuc 14*f4a2713aSLionel Sambuc@interface NSObject <NSObject> {} 15*f4a2713aSLionel Sambuc@end 16*f4a2713aSLionel Sambuc 17*f4a2713aSLionel Sambuc@class NSString, NSData, NSMutableData, NSMutableDictionary, NSMutableArray; 18*f4a2713aSLionel Sambuc 19*f4a2713aSLionel Sambuc@interface SCMObject : NSObject <NSCopying> {} 20*f4a2713aSLionel Sambuc @property(assign) SCMObject *__attribute__((objc_gc(weak))) parent; 21*f4a2713aSLionel Sambuc@end 22*f4a2713aSLionel Sambuc 23*f4a2713aSLionel Sambuc@interface SCMNode : SCMObject 24*f4a2713aSLionel Sambuc{ 25*f4a2713aSLionel Sambuc NSString *_name; 26*f4a2713aSLionel Sambuc} 27*f4a2713aSLionel Sambuc@property(copy) NSString *name; 28*f4a2713aSLionel Sambuc@end 29*f4a2713aSLionel Sambuc 30*f4a2713aSLionel Sambuc@implementation SCMNode 31*f4a2713aSLionel Sambuc @synthesize name = _name; 32*f4a2713aSLionel Sambuc - (void) setParent:(SCMObject *__attribute__((objc_gc(weak)))) inParent { 33*f4a2713aSLionel Sambuc super.parent = inParent; 34*f4a2713aSLionel Sambuc } 35*f4a2713aSLionel Sambuc@end 36