Debian Codegraph @

clang/test/DebugInfo/ObjCXX/cyclic.mm

raw
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -debug-info-kind=standalone -emit-llvm %s -o - | FileCheck %s
2
3 struct B {
4 // CHECK: ![[B:[0-9]+]] ={{.*}}!DICompositeType(tag: DW_TAG_structure_type, name: "B"
5 // CHECK-SAME: line: [[@LINE-2]],
6 // CHECK-SAME: size: 8,
7 // CHECK-NOT: offset:
8 // CHECK-NOT: DIFlagFwdDecl
9 // CHECK-SAME: elements: ![[BMEMBERS:[0-9]+]]
10 // CHECK-SAME: identifier:
11 // CHECK: ![[BMEMBERS]] = !{![[BB:[0-9]+]]}
12 B(struct A *);
13 // CHECK: ![[BB]] = !DISubprogram(name: "B",
14 // CHECK-SAME: scope: ![[B]]
15 // CHECK-SAME: line: [[@LINE-3]],
16 // CHECK-SAME: type: ![[TY:[0-9]+]],
17 // CHECK: ![[TY]] = !DISubroutineType(types: ![[ARGS:[0-9]+]])
18 // CHECK: ![[ARGS]] = !{null, ![[THIS:[0-9]+]], !{{[^,]+}}}
19 // CHECK: ![[THIS]] = !DIDerivedType(tag: DW_TAG_pointer_type,
20 // CHECK-SAME: baseType: ![[B]]
21 };
22
23 struct C {
24 B b;
25 C(struct A *);
26 virtual ~C();
27 };
28
29 C::C(struct A *a)
30 : b(a) {
31 }