1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
3 typedef signed char BOOL;
4 typedef struct _NSZone NSZone;
7 - (BOOL)isEqual:(id)object;
11 - (id)copyWithZone:(NSZone *)zone;
14 @interface NSObject <NSObject> {}
17 @class NSString, NSData, NSMutableData, NSMutableDictionary, NSMutableArray;
19 @interface SCMObject : NSObject <NSCopying> {}
20 @property(assign) SCMObject *__attribute__((objc_gc(weak))) parent;
23 @interface SCMNode : SCMObject
27 @property(copy) NSString *name;
30 @implementation SCMNode
31 @synthesize name = _name;
32 - (void) setParent:(SCMObject *__attribute__((objc_gc(weak)))) inParent {
33 super.parent = inParent;