1 // REQUIRES: system-darwin
3 // RUN: %clang_host -g -c -o %t.o %s
4 // RUN: lldb-test symbols -dump-clang-ast %t.o | FileCheck %s
6 __attribute__((objc_root_class))
8 @property (readonly) int ro_number;
9 @property int rw_number;
10 @property (readonly, getter=custom_getter) int manual;
12 @property (class, readonly) int class_property;
17 // CHECK: |-ObjCPropertyDecl {{.*}} ro_number 'int' readonly
18 // CHECK: | `-getter ObjCMethod [[READONLY:0x[0-9a-f]+]] 'ro_number'
19 // CHECK: |-ObjCMethodDecl [[READONLY]] {{.*}} implicit - ro_number 'int'
20 // CHECK: |-ObjCPropertyDecl {{.*}} rw_number 'int' assign readwrite
21 // CHECK: | |-getter ObjCMethod {{.*}} 'rw_number'
22 // CHECK: | `-setter ObjCMethod {{.*}} 'setRw_number:'
23 // CHECK: |-ObjCPropertyDecl {{.*}} manual 'int' readonly
24 // CHECK: | `-getter ObjCMethod [[CUSTOM:0x[0-9a-f]+]] 'custom_getter'
25 // CHECK: |-ObjCMethodDecl [[CUSTOM]] {{.*}} - custom_getter 'int'
26 // CHECK: |-ObjCPropertyDecl {{.*}} class_property 'int' readonly class
27 // CHECK: | `-getter ObjCMethod [[CLASS:0x[0-9a-f]+]] 'class_property'
28 // CHECK: `-ObjCMethodDecl [[CLASS]] {{.*}} + class_property 'int'