| // 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 |
| // 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 |
| void *sel_registerName(const char *); |
| @protocol CoreDAVAccountInfoProvider |
| - (NSString *)userAgentHeader; |
| id<CoreDAVAccountInfoProvider> _accountInfoProvider; |
| @implementation CoreDAVTask |
| if ([_accountInfoProvider userAgentHeader]) { |
| if (_accountInfoProvider.userAgentHeader) { |
| @property (retain) NSString *scheme; |
| b.scheme = _schemeName; // error because of this line |