1// RUN: %clang_cc1 -fobjc-arc -verify -Wno-objc-root-class %s 2 3// rdar://problem/9150784 4void test(void) { 5 __weak id x; // expected-error {{cannot create __weak reference because the current deployment target does not support 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 {{cannot synthesize weak property because the current deployment target does not support weak references}} 16@end 17