1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s
3 // Make sure we generate debug symbols for ivars added by a class extension.
12 // poking into pi for primary class ivars.
23 // poking into pg for ivars for class extension
27 // CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "I"
30 // CHECK: !DIDerivedType(tag: DW_TAG_member, name: "a"
31 // CHECK-SAME: line: 7
32 // CHECK-SAME: baseType: ![[INT:[0-9]+]]
33 // CHECK-SAME: size: 32
35 // CHECK-SAME: flags: DIFlagPublic
36 // CHECK: ![[INT]] = !DIBasicType(name: "int"
38 // Make sure we don't output the same type twice.
39 // CHECK-NOT: !DICompositeType(tag: DW_TAG_structure_type, name: "I"
42 // CHECK: !DIDerivedType(tag: DW_TAG_member, name: "b"
43 // CHECK-SAME: line: 18
44 // CHECK-SAME: baseType: ![[INT]]
45 // CHECK-SAME: size: 32
47 // CHECK-SAME: flags: DIFlagPublic