summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/direct-synthesized-ivar-access.m
blob: dc1491173aae06100b26afa4cefee09477eb4d6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: %clang_cc1 -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
OpenPOWER on IntegriCloud