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