annotate clang/test/CodeGenObjCXX/debug-info-cyclic.mm @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -debug-info-kind=standalone -emit-llvm %s -o - | FileCheck %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 struct B {
anatofuz
parents:
diff changeset
4 // CHECK: ![[B:[0-9]+]] ={{.*}}!DICompositeType(tag: DW_TAG_structure_type, name: "B"
anatofuz
parents:
diff changeset
5 // CHECK-SAME: line: [[@LINE-2]],
anatofuz
parents:
diff changeset
6 // CHECK-SAME: size: 8,
anatofuz
parents:
diff changeset
7 // CHECK-NOT: offset:
anatofuz
parents:
diff changeset
8 // CHECK-NOT: DIFlagFwdDecl
anatofuz
parents:
diff changeset
9 // CHECK-SAME: elements: ![[BMEMBERS:[0-9]+]]
anatofuz
parents:
diff changeset
10 // CHECK-SAME: identifier:
anatofuz
parents:
diff changeset
11 // CHECK: ![[BMEMBERS]] = !{![[BB:[0-9]+]]}
anatofuz
parents:
diff changeset
12 B(struct A *);
anatofuz
parents:
diff changeset
13 // CHECK: ![[BB]] = !DISubprogram(name: "B", scope: ![[B]]
anatofuz
parents:
diff changeset
14 // CHECK-SAME: line: [[@LINE-2]],
anatofuz
parents:
diff changeset
15 // CHECK-SAME: type: ![[TY:[0-9]+]],
anatofuz
parents:
diff changeset
16 // CHECK: ![[TY]] = !DISubroutineType(types: ![[ARGS:[0-9]+]])
anatofuz
parents:
diff changeset
17 // CHECK: ![[ARGS]] = !{null, ![[THIS:[0-9]+]], !{{[^,]+}}}
anatofuz
parents:
diff changeset
18 // CHECK: ![[THIS]] = !DIDerivedType(tag: DW_TAG_pointer_type,
anatofuz
parents:
diff changeset
19 // CHECK-SAME: baseType: ![[B]]
anatofuz
parents:
diff changeset
20 };
anatofuz
parents:
diff changeset
21
anatofuz
parents:
diff changeset
22 struct C {
anatofuz
parents:
diff changeset
23 B b;
anatofuz
parents:
diff changeset
24 C(struct A *);
anatofuz
parents:
diff changeset
25 virtual ~C();
anatofuz
parents:
diff changeset
26 };
anatofuz
parents:
diff changeset
27
anatofuz
parents:
diff changeset
28 C::C(struct A *a)
anatofuz
parents:
diff changeset
29 : b(a) {
anatofuz
parents:
diff changeset
30 }