John McCall | 260611a | 2012-06-20 06:18:46 +0000 | [diff] [blame] | 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 |
Fariborz Jahanian | 90fe4bc | 2010-10-08 21:12:22 +0000 | [diff] [blame] | 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 | |
| 5 | void *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 |