Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaObjC / property-7.m
blob3d03b8f680d32405dc2ff7c7e05783c048039dea
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
3 typedef signed char BOOL;
4 typedef struct _NSZone NSZone;
6 @protocol NSObject
7 - (BOOL)isEqual:(id)object;
8 @end
10 @protocol NSCopying
11 - (id)copyWithZone:(NSZone *)zone;
12 @end
14 @interface NSObject <NSObject> {}
15 @end
17 @class NSString, NSData, NSMutableData, NSMutableDictionary, NSMutableArray;
19 @interface SCMObject : NSObject <NSCopying> {}
20   @property(assign) SCMObject *__attribute__((objc_gc(weak))) parent;
21 @end
23 @interface SCMNode : SCMObject
25   NSString *_name;
27 @property(copy) NSString *name;
28 @end
30 @implementation SCMNode
31   @synthesize name = _name;
32   - (void) setParent:(SCMObject *__attribute__((objc_gc(weak)))) inParent {
33     super.parent = inParent;
34   }
35 @end