[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Index / property-getter-setter.m
blobd77775ac149fb257f785ceeb3131836a2ab0d3cb
1 @interface Foo
2 @property (assign,readwrite,getter=b,setter=c:) id a;
3 @property (assign,readonly,getter=e) id d;
4 @property (assign,readwrite) id f;
5 @end
7 // RUN: c-index-test -test-print-type-declaration %s | FileCheck %s
8 // CHECK: ObjCPropertyDecl=a:2:52 [getter,assign,readwrite,setter,] (getter=b) (setter=c:) [typedeclaration=id] [typekind=ObjCId]
9 // CHECK: ObjCPropertyDecl=d:3:41 [readonly,getter,assign,] (getter=e) [typedeclaration=id] [typekind=ObjCId]
10 // CHECK: ObjCPropertyDecl=f:4:33 [assign,readwrite,] [typedeclaration=id] [typekind=ObjCId]