35 lines · plain
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.cpp2// RUN: %clang_cc1 -fsyntax-only -std=gnu++98 -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp3 4@class XX;5@class YY, ZZ, QQ;6@class ISyncClient, SMSession, ISyncManager, ISyncSession, SMDataclassInfo, SMClientInfo,7 DMCConfiguration, DMCStatusEntry;8 9@interface QQ10 11@end12 13@interface SMDataclassInfo : QQ14- (XX*) Meth;15- (DMCStatusEntry*)Meth2;16@end17 18@implementation SMDataclassInfo19- (XX*) Meth { return 0; }20- (DMCStatusEntry*)Meth2 { return 0; }21@end22 23@interface YY 24{25 ISyncClient *p1;26 ISyncSession *p2;27}28@property (copy) ISyncClient *p1;29@end30 31@implementation YY32@synthesize p1;33@end34 35