summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/writable-property-in-superclass.m
blob: 182b1c47bb39269f1609e02fe1182714ed70829e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// RUN: clang-cc  -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

OpenPOWER on IntegriCloud