54 lines · plain
1// RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc %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 4extern "C" {5@class XX;6@class YY, ZZ, QQ;7@class ISyncClient, SMSession, ISyncManager, ISyncSession, SMDataclassInfo, SMClientInfo,8 DMCConfiguration, DMCStatusEntry;9 10@interface QQ11 12@end13 14@interface SMDataclassInfo : QQ15- (XX*) Meth;16- (DMCStatusEntry*)Meth2;17@end18 19@implementation SMDataclassInfo20- (XX*) Meth { return 0; }21- (DMCStatusEntry*)Meth2 { return 0; }22@end23 24@interface YY 25{26 ISyncClient *p1;27 ISyncSession *p2;28}29@property (copy) ISyncClient *p1;30@end31 32@implementation YY33@synthesize p1;34@end35 36extern "C" {37@class CCC;38@class Protocol, P , Q;39int I,J,K;40};41 42};43 44@interface ISDPropertyChangeGroup45@end46 47@implementation ISDPropertyChangeGroup48@class ISDClientState;49- (id)lastModifiedGeneration : (ISDClientState *) obj50{51 return obj ;52}53@end54