1 // RUN: %clang_cc1 -fobjc-arc -verify -Wno-objc-root-class %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 __weak void *v; // expected-warning {{'__weak' only applies to Objective-C object or block pointer types}} 7 } 8 9 @interface A 10 @property (weak) id testObjectWeakProperty; // expected-note {{declared here}} 11 @end 12 13 @implementation A 14 // rdar://9605088 15 @synthesize testObjectWeakProperty; // expected-error {{the current deployment target does not support automated __weak references}} 16 @end 17