1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o %t-rw.cpp 2*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp 3*f4a2713aSLionel Sambuc// rdar:// 8527018 4*f4a2713aSLionel Sambuc 5*f4a2713aSLionel Sambucvoid *sel_registerName(const char *); 6*f4a2713aSLionel Sambuc 7*f4a2713aSLionel Sambuc@class NSString; 8*f4a2713aSLionel Sambuc@interface CoreDAVDiscoveryAccountInfo { 9*f4a2713aSLionel Sambuc NSString *_scheme; 10*f4a2713aSLionel Sambuc} 11*f4a2713aSLionel Sambuc@property (retain) NSString *scheme; 12*f4a2713aSLionel Sambuc- (void) Meth ; 13*f4a2713aSLionel Sambuc@end 14*f4a2713aSLionel Sambuc 15*f4a2713aSLionel Sambuc@implementation CoreDAVDiscoveryAccountInfo 16*f4a2713aSLionel Sambuc@synthesize scheme=_scheme; 17*f4a2713aSLionel Sambuc- (void) Meth { 18*f4a2713aSLionel Sambuc CoreDAVDiscoveryAccountInfo *discoveryInfo; 19*f4a2713aSLionel Sambuc discoveryInfo.scheme = @"https"; 20*f4a2713aSLionel Sambuc} 21*f4a2713aSLionel Sambuc@end 22