brintos

brintos / llvm-project-archived public Read only

0
0
Text · 724 B · 86eade6 Raw
35 lines · plain
1// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s2 3// CHECK: !DIObjCProperty(name: "baseInt"4// CHECK-SAME:            setter: "mySetBaseInt:"5// CHECK-SAME:            getter: "myGetBaseInt"6// CHECK-SAME:            attributes: 24467// CHECK-SAME:            type: ![[P1_TYPE:[0-9]+]]8//9// CHECK: ![[P1_TYPE]] = !DIBasicType(name: "int"10 11@interface BaseClass2 12{13	int _baseInt;14}15- (int) myGetBaseInt;16- (void) mySetBaseInt: (int) in_int;17@property(getter=myGetBaseInt,setter=mySetBaseInt:) int baseInt;18@end19 20@implementation BaseClass221 22- (int) myGetBaseInt23{24        return _baseInt;25}26 27- (void) mySetBaseInt: (int) in_int28{29    _baseInt = 2 * in_int;30}31@end32 33 34void foo(BaseClass2 *ptr) {}35