Debian Codegraph @

clang/test/DebugInfo/ObjC/property-explicit-ivar.m

raw
1 // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s
2
3 // CHECK: ![[BASE_PROP:[0-9]+]] = !DIObjCProperty(name: "base"
4 // CHECK-SAME: attributes: 2316
5 // CHECK-SAME: type: ![[P1_TYPE:[0-9]+]]
6 //
7 // CHECK: ![[P1_TYPE]] = !DIBasicType(name: "int"
8 //
9 // CHECK: !DIDerivedType(tag: DW_TAG_member, name: "_customIvar"
10 // CHECK-SAME: extraData: ![[BASE_PROP]]
11
12 @interface C {
13 int _customIvar;
14 }
15 @property int base;
16 @end
17
18 @implementation C
19 @synthesize base = _customIvar;
20 @end
21
22 void foo(C *cptr) {}