Home | History | Annotate | Download | only in SemaObjC
      1 // RUN: %clang_cc1 -fobjc-arc -fobjc-nonfragile-abi -verify %s
      2 
      3 // rdar://problem/9150784
      4 void test(void) {
      5   __weak id x; // expected-error {{the current deployment target does not support automated __weak references}}
      6 }
      7 
      8 @interface A
      9 @property (weak) id testObjectWeakProperty; // expected-note {{declared here}}
     10 @end
     11 
     12 @implementation A
     13 // rdar://9605088
     14 @synthesize testObjectWeakProperty; // expected-error {{the current deployment target does not support automated __weak references}}
     15 @end
     16