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 | 2d8c1fd | 2010-10-16 00:29:27 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -Did="void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp |
| 3 | // rdar:// 8558702 |
| 4 | |
| 5 | @class NSString; |
| 6 | @interface NSObject @end |
| 7 | |
| 8 | @protocol P |
| 9 | @property (retain) NSString* test; |
| 10 | @end |
| 11 | |
| 12 | |
| 13 | @interface A : NSObject <P> { |
| 14 | NSString* _test; |
| 15 | } |
| 16 | @end |
| 17 | |
| 18 | |
| 19 | @implementation A |
| 20 | @synthesize test=_test; |
| 21 | @end |
| 22 | |