1*67e74705SXin Li// RUN: %clang_cc1 -triple x86_64-apple-darwin11 -fobjc-runtime-has-weak -fobjc-arc -fsyntax-only -verify -Wno-objc-root-class %s 2*67e74705SXin Li// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin11 -fobjc-runtime-has-weak -fobjc-arc -fsyntax-only -verify -Wno-objc-root-class %s 3*67e74705SXin Li// expected-no-diagnostics 4*67e74705SXin Li// rdar:// 10558871 5*67e74705SXin Li 6*67e74705SXin Li@interface PP 7*67e74705SXin Li@property (readonly) id ReadOnlyPropertyNoBackingIvar; 8*67e74705SXin Li@property (readonly) id ReadOnlyProperty; 9*67e74705SXin Li@property (readonly) id ReadOnlyPropertyX; 10*67e74705SXin Li@end 11*67e74705SXin Li 12*67e74705SXin Li@implementation PP { 13*67e74705SXin Li__weak id _ReadOnlyProperty; 14*67e74705SXin Li} 15*67e74705SXin Li@synthesize ReadOnlyPropertyNoBackingIvar; 16*67e74705SXin Li@synthesize ReadOnlyProperty = _ReadOnlyProperty; 17*67e74705SXin Li@synthesize ReadOnlyPropertyX = _ReadOnlyPropertyX; 18*67e74705SXin Li@end 19*67e74705SXin Li 20*67e74705SXin Li@interface DD 21*67e74705SXin Li@property (readonly) id ReadOnlyProperty; 22*67e74705SXin Li@property (readonly) id ReadOnlyPropertyStrong; 23*67e74705SXin Li@property (readonly) id ReadOnlyPropertyNoBackingIvar; 24*67e74705SXin Li@end 25*67e74705SXin Li 26*67e74705SXin Li@implementation DD { 27*67e74705SXin Li__weak id _ReadOnlyProperty; 28*67e74705SXin Li__strong id _ReadOnlyPropertyStrong; 29*67e74705SXin Li} 30*67e74705SXin Li@end 31