xref: /aosp_15_r20/external/clang/test/SemaObjC/no-warn-synth-protocol-meth.m (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li// RUN: %clang_cc1  -fsyntax-only -verify -Wno-objc-root-class %s
2*67e74705SXin Li// expected-no-diagnostics
3*67e74705SXin Li
4*67e74705SXin Li@protocol CYCdef
5*67e74705SXin Li- (int)name;
6*67e74705SXin Li@end
7*67e74705SXin Li
8*67e74705SXin Li@interface JSCdef <CYCdef> {
9*67e74705SXin Li    int name;
10*67e74705SXin Li}
11*67e74705SXin Li
12*67e74705SXin Li@property (assign) int name;
13*67e74705SXin Li@end
14*67e74705SXin Li
15*67e74705SXin Li@implementation JSCdef
16*67e74705SXin Li@synthesize name;
17*67e74705SXin Li@end
18*67e74705SXin Li
19