1// 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// RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp 3// rdar:// 8527018 4 5void *sel_registerName(const char *); 6 7@class NSString; 8@interface CoreDAVDiscoveryAccountInfo { 9 NSString *_scheme; 10} 11@property (retain) NSString *scheme; 12- (void) Meth ; 13@end 14 15@implementation CoreDAVDiscoveryAccountInfo 16@synthesize scheme=_scheme; 17- (void) Meth { 18 CoreDAVDiscoveryAccountInfo *discoveryInfo; 19 discoveryInfo.scheme = @"https"; 20} 21@end 22