blob: 49c439b167605981895d6712dbcf1496f1f283ee [file] [log] [blame]
John McCalld1e40d52011-10-02 01:16:38 +00001// RUN: %clang_cc1 -fobjc-arc -verify %s
John McCallf85e1932011-06-15 23:02:42 +00002
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