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 -std=gnu++98 -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
5 void *sel_registerName(const char *);
9 @protocol CoreDAVAccountInfoProvider
10 - (NSString *)userAgentHeader;
13 @interface CoreDAVTask
15 id<CoreDAVAccountInfoProvider> _accountInfoProvider;
20 @implementation CoreDAVTask
22 if ([_accountInfoProvider userAgentHeader]) {
24 if (_accountInfoProvider.userAgentHeader) {
31 @property (retain) NSString *scheme;
35 NSString* _schemeName;
43 b.scheme = _schemeName; // error because of this line