llvm-for-llvmta/tools/clang/test/Index/property-getter-setter.m

11 lines
554 B
Mathematica
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
@interface Foo
@property (assign,readwrite,getter=b,setter=c:) id a;
@property (assign,readonly,getter=e) id d;
@property (assign,readwrite) id f;
@end
// RUN: c-index-test -test-print-type-declaration %s | FileCheck %s
// CHECK: ObjCPropertyDecl=a:2:52 [getter,assign,readwrite,setter,] (getter=b) (setter=c:) [typedeclaration=id] [typekind=ObjCId]
// CHECK: ObjCPropertyDecl=d:3:41 [readonly,getter,assign,] (getter=e) [typedeclaration=id] [typekind=ObjCId]
// CHECK: ObjCPropertyDecl=f:4:33 [assign,readwrite,] [typedeclaration=id] [typekind=ObjCId]