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 | 95ed778 | 2011-08-27 20:50:59 +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 |
Fariborz Jahanian | 91fbd12 | 2010-01-11 22:48:40 +0000 | [diff] [blame] | 3 | // rdar://6969189 |
| 4 | |
| 5 | @class XX; |
| 6 | @class YY, ZZ, QQ; |
| 7 | @class ISyncClient, SMSession, ISyncManager, ISyncSession, SMDataclassInfo, SMClientInfo, |
| 8 | DMCConfiguration, DMCStatusEntry; |
| 9 | |
Fariborz Jahanian | 95ed778 | 2011-08-27 20:50:59 +0000 | [diff] [blame] | 10 | @interface QQ |
| 11 | |
| 12 | @end |
| 13 | |
| 14 | @interface SMDataclassInfo : QQ |
| 15 | - (XX*) Meth; |
| 16 | - (DMCStatusEntry*)Meth2; |
| 17 | @end |
| 18 | |
| 19 | @implementation SMDataclassInfo |
| 20 | - (XX*) Meth { return 0; } |
| 21 | - (DMCStatusEntry*)Meth2 { return 0; } |
| 22 | @end |
| 23 | |
| 24 | @interface YY |
| 25 | { |
| 26 | ISyncClient *p1; |
| 27 | ISyncSession *p2; |
| 28 | } |
| 29 | @property (copy) ISyncClient *p1; |
| 30 | @end |
| 31 | |
| 32 | @implementation YY |
| 33 | @synthesize p1; |
| 34 | @end |
| 35 | |