1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
15 int f0(I *a) { return a->IP; } // expected-error {{instance variable 'IP' is private}}
20 @property int PROP_INMAIN;
26 @property int PROP_INCLASSEXT;
33 protected_ivar = 1; // OK
34 return private_ivar; // OK
44 protected_ivar = 1; // OK
45 _PROP_INMAIN = 1; // expected-error {{instance variable '_PROP_INMAIN' is private}}
46 _PROP_INCLASSEXT = 2; // expected-error {{instance variable '_PROP_INCLASSEXT' is private}}
47 return private_ivar; // expected-error {{instance variable 'private_ivar' is private}}
52 @property (weak) id testObjectWeakProperty; // expected-note {{declared here}}
56 @synthesize testObjectWeakProperty; // expected-error {{cannot synthesize weak property because the current deployment target does not support weak references}}