comparison clang/test/CodeGenCXX/debug-info-inheriting-constructor.cpp @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children c4bab56944e8
comparison
equal deleted inserted replaced
173:0572611fdcc8 207:2e18cbf3894f
6 struct B : A { 6 struct B : A {
7 using A::A; 7 using A::A;
8 }; 8 };
9 9
10 A::A(int i, ...) {} 10 A::A(int i, ...) {}
11 // CHECK: define void @{{.*}}foo 11 // CHECK: define{{.*}} void @{{.*}}foo
12 // CHECK-NOT: ret void 12 // CHECK-NOT: ret void
13 // CHECK: call void @llvm.dbg.declare 13 // CHECK: call void @llvm.dbg.declare
14 // CHECK-NOT: ret void 14 // CHECK-NOT: ret void
15 // CHECK: call void @llvm.dbg.declare(metadata %{{.*}}** %{{[^,]+}}, 15 // CHECK: call void @llvm.dbg.declare(metadata %{{.*}}** %{{[^,]+}},
16 // CHECK-SAME: metadata ![[THIS:[0-9]+]], metadata !DIExpression()), !dbg ![[LOC:[0-9]+]] 16 // CHECK-SAME: metadata ![[THIS:[0-9]+]], metadata !DIExpression()), !dbg ![[LOC:[0-9]+]]
17 // CHECK: ret void, !dbg ![[NOINL:[0-9]+]] 17 // CHECK: ret void, !dbg ![[NOINL:[0-9]+]]
18 // CHECK: ![[FOO:.*]] = distinct !DISubprogram(name: "foo" 18 // CHECK: ![[FOO:.*]] = distinct !DISubprogram(name: "foo"
19 // CHECK-DAG: ![[A:.*]] = distinct !DISubprogram(name: "A", linkageName: "_ZN1BCI11AEiz" 19 // CHECK-DAG: ![[A:.*]] = distinct !DISubprogram(name: "A", linkageName: "_ZN1BCI11AEiz"
20 void foo() { 20 void foo() {
21 // CHECK-DAG: ![[LOC]] = !DILocation(line: 0, scope: ![[A]], inlinedAt: ![[INL:[0-9]+]]) 21 // CHECK-DAG: ![[LOC]] = !DILocation(line: 0, scope: ![[A]], inlinedAt: ![[INL:[0-9]+]])
22 // CHECK-DAG: ![[INL]] = !DILocation(line: [[@LINE+1]], scope: ![[FOO]]) 22 // CHECK-DAG: ![[INL]] = !DILocation(line: [[@LINE+1]], column: 5, scope: ![[FOO]])
23 B b(0); 23 B b(0);
24 // CHECK: ![[NOINL]] = !DILocation(line: [[@LINE+1]], scope: !{{[0-9]+}}) 24 // CHECK: ![[NOINL]] = !DILocation(line: [[@LINE+1]], column: 1, scope: !{{[0-9]+}})
25 } 25 }