aboutsummaryrefslogtreecommitdiff
path: root/clang/test/DebugInfo/ObjC/property-basic.m
blob: 65e1d7a6a9b1f708a8e7f100eac94bfddbc2e351 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Checks basic debug-info generation for property. Makes sure we
// create a DIObjCProperty for the synthesized property.

// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s

// CHECK: !DIObjCProperty(name: "p1"
// CHECK-SAME:            attributes: 2316
// CHECK-SAME:            type: ![[P1_TYPE:[0-9]+]]
//
// CHECK: ![[P1_TYPE]] = !DIBasicType(name: "int"

@interface I1 {
int p1;
}
@property int p1;
@end

@implementation I1
@synthesize p1;
@end