| 1 |
// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s |
| 2 |
|
| 3 |
// CHECK: !DIObjCProperty(name: "baseInt" |
| 4 |
// CHECK-SAME: setter: "mySetBaseInt:" |
| 5 |
// CHECK-SAME: getter: "myGetBaseInt" |
| 6 |
// CHECK-SAME: attributes: 2446 |
| 7 |
// 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 |
@end |
| 19 |
|
| 20 |
@implementation BaseClass2 |
| 21 |
|
| 22 |
- (int) myGetBaseInt |
| 23 |
{ |
| 24 |
return _baseInt; |
| 25 |
} |
| 26 |
|
| 27 |
- (void) mySetBaseInt: (int) in_int |
| 28 |
{ |
| 29 |
_baseInt = 2 * in_int; |
| 30 |
} |
| 31 |
@end |
| 32 |
|
| 33 |
|
| 34 |
void foo(BaseClass2 *ptr) {} |