summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/direct-synthesized-ivar-access.m
blob: 54b71109c335667adf3181240891f3f8c6f29e9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: %clang_cc1 -Wnonfragile-abi2 -fsyntax-only -fobjc-default-synthesize-properties -verify -Wno-objc-root-class %s
// rdar://8673791
// rdar://9943851

@interface I {
}

@property int IVAR; 
- (int) OK;
@end

@implementation I
- (int) Meth { return _IVAR; }
- (int) OK { return self.IVAR; }
@end