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// 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
23