30 lines · plain
1// REQUIRES: system-darwin2//3// RUN: %clang_host -g -c -o %t.o %s4// RUN: lldb-test symbols -dump-clang-ast %t.o | FileCheck %s5 6__attribute__((objc_root_class))7@interface Root8@property (readonly) int ro_number;9@property int rw_number;10@property (readonly, getter=custom_getter) int manual;11- (int)custom_getter;12@property (class, readonly) int class_property;13@end14 15Root *obj;16 17// CHECK: |-ObjCPropertyDecl {{.*}} ro_number 'int' readonly18// 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 readwrite21// CHECK: | |-getter ObjCMethod {{.*}} 'rw_number'22// CHECK: | `-setter ObjCMethod {{.*}} 'setRw_number:'23// CHECK: |-ObjCPropertyDecl {{.*}} manual 'int' readonly24// CHECK: | `-getter ObjCMethod [[CUSTOM:0x[0-9a-f]+]] 'custom_getter'25// CHECK: |-ObjCMethodDecl [[CUSTOM]] {{.*}} - custom_getter 'int'26// CHECK: |-ObjCPropertyDecl {{.*}} class_property 'int' readonly class27// CHECK: | `-getter ObjCMethod [[CLASS:0x[0-9a-f]+]] 'class_property'28// CHECK: `-ObjCMethodDecl [[CLASS]] {{.*}} + class_property 'int'29 30