Home | History | Annotate | Download | only in SemaObjC

Lines Matching full:__weak

11   __weak sub *w2; // expected-error {{class is incompatible with __weak references}}
13 __weak NSOptOut1072 *ns1; // expected-error {{class is incompatible with __weak references}}
17 ns1 = (__weak sub *)obj; // expected-error {{assignment of a weak-unavailable object to a __weak object}} \
18 // expected-error {{class is incompatible with __weak references}} \
30 __weak id weak1;
31 weak1 = strong1; // expected-error {{assignment of a weak-unavailable object to a __weak object}}
33 __weak id weak2 = strong1; // expected-error {{assignment of a weak-unavailable object to a __weak object}}
34 return (__weak id)strong1; // expected-error {{cast of weak-unavailable object of type 'NOWEAK *' to a __weak object of type '__weak id'}} \
43 __weak id<P> weak1;
44 weak1 = strong1; // expected-error {{assignment of a weak-unavailable object to a __weak object}}
46 __weak id<P> weak2 = strong1; // expected-error {{assignment of a weak-unavailable object to a __weak object}}
47 return (__weak id<P>)strong1; // expected-error {{cast of weak-unavailable object of type 'NOWEAK<P,P1> *' to a __weak object of type '__weak id<P>'}} \
59 @property (weak) NSFont *font; // expected-error {{synthesizing __weak instance variable of type 'NSFont *', which does not support weak references}}
68 @property (weak) NSFont *font; // expected-error {{synthesizing __weak instance variable of type 'NSFont *', which does not support weak references}}
79 @property (weak) NSFont *font; // expected-error {{synthesizing __weak instance variable of type 'NSFont *', which does not support weak references}}