2015-10-08 12:24:12 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin -debug-info-kind=standalone -emit-llvm %s -o - | FileCheck %s
|
2015-02-18 03:17:56 +08:00
|
|
|
|
|
|
|
struct B {
|
2016-04-24 05:08:27 +08:00
|
|
|
// CHECK: ![[B:[0-9]+]] ={{.*}}!DICompositeType(tag: DW_TAG_structure_type, name: "B"
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK-SAME: line: [[@LINE-2]],
|
2016-10-20 08:13:19 +08:00
|
|
|
// CHECK-SAME: size: 8,
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK-NOT: offset:
|
|
|
|
// CHECK-NOT: DIFlagFwdDecl
|
|
|
|
// CHECK-SAME: elements: ![[BMEMBERS:[0-9]+]]
|
2016-04-24 05:08:27 +08:00
|
|
|
// CHECK-SAME: identifier:
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK: ![[BMEMBERS]] = !{![[BB:[0-9]+]]}
|
2015-02-18 03:17:56 +08:00
|
|
|
B(struct A *);
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK: ![[BB]] = !DISubprogram(name: "B", scope: ![[B]]
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK-SAME: line: [[@LINE-2]],
|
|
|
|
// CHECK-SAME: type: ![[TY:[0-9]+]],
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK: ![[TY]] = !DISubroutineType(types: ![[ARGS:[0-9]+]])
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK: ![[ARGS]] = !{null, ![[THIS:[0-9]+]], !{{[^,]+}}}
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK: ![[THIS]] = !DIDerivedType(tag: DW_TAG_pointer_type,
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK-SAME: baseType: ![[B]]
|
2015-02-18 03:17:56 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct C {
|
|
|
|
B b;
|
|
|
|
C(struct A *);
|
|
|
|
virtual ~C();
|
|
|
|
};
|
|
|
|
|
|
|
|
C::C(struct A *a)
|
|
|
|
: b(a) {
|
|
|
|
}
|