| 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 -Did="void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp |
| 3 |
|
| 4 |
@class NSString; |
| 5 |
@interface NSObject @end |
| 6 |
|
| 7 |
@protocol P |
| 8 |
@property (retain) NSString* test; |
| 9 |
@end |
| 10 |
|
| 11 |
|
| 12 |
@interface A : NSObject <P> { |
| 13 |
NSString* _test; |
| 14 |
} |
| 15 |
@end |
| 16 |
|
| 17 |
|
| 18 |
@implementation A |
| 19 |
@synthesize test=_test; |
| 20 |
@end |
| 21 |
|