1 // RUN: %clang_cc1 -triple x86_64-apple-darwin11 -fobjc-runtime-has-weak -fobjc-arc -fsyntax-only -verify -Wno-objc-root-class %s 2 // rdar:// 10558871 3 4 @interface PP 5 @property (readonly) id ReadOnlyPropertyNoBackingIvar; 6 @property (readonly) id ReadOnlyProperty; 7 @property (readonly) id ReadOnlyPropertyX; 8 @end 9 10 @implementation PP { 11 __weak id _ReadOnlyProperty; 12 } 13 @synthesize ReadOnlyPropertyNoBackingIvar; 14 @synthesize ReadOnlyProperty = _ReadOnlyProperty; 15 @synthesize ReadOnlyPropertyX = _ReadOnlyPropertyX; 16 @end 17