Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaObjC / narrow-property-type-in-cont-class.m
blob7ec22cfec9e343291ca8833395908a2bb36a9394
1 // RUN: %clang_cc1 -x objective-c -fsyntax-only -verify %s
2 // RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify %s
4 @interface NSArray @end
6 @interface NSMutableArray : NSArray
7 @end
9 @interface GKTurnBasedMatchMakerKVO
10 @property(nonatomic,readonly,retain) NSArray* outline;
11 @property(nonatomic,readonly,retain) NSMutableArray* err_outline; // expected-note {{property declared here}}
12 @end
14 @interface GKTurnBasedMatchMakerKVO ()
15 @property(nonatomic,readwrite,retain) NSMutableArray* outline;
16 @property(nonatomic,readwrite,retain) NSArray* err_outline; // expected-error {{type of property 'NSArray *' in class extension does not match property type in primary class}}
17 @end