summaryrefslogtreecommitdiff
path: root/clang/test/SemaObjC/writable-property-in-superclass.m
blob: bbd1f16cffc0bb62fc695b831fad7455711d20ff (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// RUN: %clang_cc1  -fsyntax-only -verify %s

@interface MessageStore
@property (assign, readonly) int P;
@end

@interface MessageStore (CAT)
@property (assign) int P;
@end

@interface  NeXTMbox : MessageStore
@end

@implementation NeXTMbox
- (void) Meth { self.P = 1; }
@end