blob: a72fb5f19c7afca0909454c04f0f23226f11d7b3 [file] [log] [blame]
Fariborz Jahanian112c3302011-01-04 20:05:20 +00001// RUN: %clang_cc1 -Wnonfragile-abi2 -fsyntax-only -fobjc-nonfragile-abi -fobjc-default-synthesize-properties -verify %s
Fariborz Jahaniande267602010-11-17 19:41:23 +00002// rdar://8673791
3
4@interface I {
5}
6
7@property int IVAR; // expected-note {{property declared here}}
8- (int) OK;
9@end
10
11@implementation I
12- (int) Meth { return IVAR; } // expected-warning {{direct access of synthesized ivar by using property access 'IVAR'}}
13- (int) OK { return self.IVAR; }
14@end