summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/direct-synthesized-ivar-access.m
blob: b1a470ab2e5c01ddd277f48fe56ef023f23be36f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: %clang_cc1 -Wnonfragile-abi2 -fsyntax-only -fobjc-nonfragile-abi -fobjc-default-synthesize-properties -verify %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