| 1 |
// Checks basic debug-info generation for property. Makes sure we |
| 2 |
// create a DIObjCProperty for the synthesized property. |
| 3 |
|
| 4 |
// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s |
| 5 |
|
| 6 |
// CHECK: !DIObjCProperty(name: "p1" |
| 7 |
// CHECK-SAME: attributes: 2316 |
| 8 |
// CHECK-SAME: type: ![[P1_TYPE:[0-9]+]] |
| 9 |
// |
| 10 |
// CHECK: ![[P1_TYPE]] = !DIBasicType(name: "int" |
| 11 |
|
| 12 |
@interface I1 { |
| 13 |
int p1; |
| 14 |
} |
| 15 |
@property int p1; |
| 16 |
@end |
| 17 |
|
| 18 |
@implementation I1 |
| 19 |
@synthesize p1; |
| 20 |
@end |