blob: 0bf7d52fd21818bbdfed63a627eec98f8cd8d997 [file] [log] [blame]
John McCallf85e1932011-06-15 23:02:42 +00001// RUN: %clang_cc1 -fobjc-arc -fobjc-nonfragile-abi -fobjc-no-arc-runtime -verify %s
2
3// rdar://problem/9150784
4void 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