John McCall | f85e193 | 2011-06-15 23:02:42 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fobjc-arc -fobjc-nonfragile-abi -fobjc-no-arc-runtime -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 |