Patrick Beard | b2f6820 | 2012-04-06 18:12:22 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-apple-darwin11 -fobjc-runtime-has-weak -fobjc-arc -fsyntax-only -verify -Wno-objc-root-class %s |
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
Fariborz Jahanian | 015f608 | 2012-01-11 18:26:06 +0000 | [diff] [blame] | 3 | // rdar:// 10558871 |
| 4 | |
| 5 | @interface PP |
| 6 | @property (readonly) id ReadOnlyPropertyNoBackingIvar; |
| 7 | @property (readonly) id ReadOnlyProperty; |
| 8 | @property (readonly) id ReadOnlyPropertyX; |
| 9 | @end |
| 10 | |
| 11 | @implementation PP { |
| 12 | __weak id _ReadOnlyProperty; |
| 13 | } |
| 14 | @synthesize ReadOnlyPropertyNoBackingIvar; |
| 15 | @synthesize ReadOnlyProperty = _ReadOnlyProperty; |
| 16 | @synthesize ReadOnlyPropertyX = _ReadOnlyPropertyX; |
| 17 | @end |