xref: /aosp_15_r20/external/clang/test/Rewriter/rewrite-forward-class.m (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li// 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*67e74705SXin Li// RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
3*67e74705SXin Li// rdar://6969189
4*67e74705SXin Li
5*67e74705SXin Li@class XX;
6*67e74705SXin Li@class YY, ZZ, QQ;
7*67e74705SXin Li@class ISyncClient, SMSession, ISyncManager, ISyncSession, SMDataclassInfo, SMClientInfo,
8*67e74705SXin Li    DMCConfiguration, DMCStatusEntry;
9*67e74705SXin Li
10*67e74705SXin Li@interface QQ
11*67e74705SXin Li
12*67e74705SXin Li@end
13*67e74705SXin Li
14*67e74705SXin Li@interface SMDataclassInfo : QQ
15*67e74705SXin Li- (XX*) Meth;
16*67e74705SXin Li- (DMCStatusEntry*)Meth2;
17*67e74705SXin Li@end
18*67e74705SXin Li
19*67e74705SXin Li@implementation SMDataclassInfo
20*67e74705SXin Li- (XX*) Meth { return 0; }
21*67e74705SXin Li- (DMCStatusEntry*)Meth2 { return 0; }
22*67e74705SXin Li@end
23*67e74705SXin Li
24*67e74705SXin Li@interface YY
25*67e74705SXin Li{
26*67e74705SXin Li  ISyncClient *p1;
27*67e74705SXin Li  ISyncSession *p2;
28*67e74705SXin Li}
29*67e74705SXin Li@property (copy) ISyncClient *p1;
30*67e74705SXin Li@end
31*67e74705SXin Li
32*67e74705SXin Li@implementation YY
33*67e74705SXin Li@synthesize p1;
34*67e74705SXin Li@end
35*67e74705SXin Li
36