[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git] / test / SemaObjC / direct-synthesized-ivar-access.m
bloba72fb5f19c7afca0909454c04f0f23226f11d7b3
1 // RUN: %clang_cc1 -Wnonfragile-abi2 -fsyntax-only -fobjc-nonfragile-abi -fobjc-default-synthesize-properties -verify %s
2 // rdar://8673791
4 @interface I {
7 @property int IVAR; // expected-note {{property declared here}}
8 - (int) OK;
9 @end
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