summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/direct-synthesized-ivar-access.m
blob: 7ec333723b66c6fc1c8b321d172cba3bd7a48bab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
// expected-no-diagnostics
// rdar://8673791
// rdar://9943851

@interface I {
}

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

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