brintos

brintos / llvm-project-archived public Read only

0
0
Text · 884 B · 7918387 Raw
26 lines · cpp
1// RUN: %clang_cc1 -debug-info-kind=standalone -std=c++11 -triple x86_64-darwin -emit-llvm -o - %s | FileCheck %s2 3struct A {4  A(int, ...);5};6struct B : A {7  using A::A;8};9 10A::A(int i, ...) {}11// CHECK: define{{.*}} void @{{.*}}foo12// CHECK-NOT: ret void13// CHECK: #dbg_declare14// CHECK-NOT: ret void15// CHECK: #dbg_declare(ptr %{{[^,]+}},16// CHECK-SAME: ![[THIS:[0-9]+]], !DIExpression(), ![[LOC:[0-9]+]]17// CHECK: ret void, !dbg ![[NOINL:[0-9]+]]18// CHECK: ![[FOO:.*]] = distinct !DISubprogram(name: "foo"19// CHECK-DAG: ![[A:.*]] = distinct !DISubprogram(name: "A", linkageName: "_ZN1BCI11AEiz"20void foo() {21// CHECK-DAG: ![[LOC]] = !DILocation(line: 0, scope: ![[A]], inlinedAt: ![[INL:[0-9]+]])22// CHECK-DAG: ![[INL]] = !DILocation(line: [[@LINE+1]], column: 5, scope: ![[FOO]])23  B b(0);24// CHECK: ![[NOINL]] = !DILocation(line: [[@LINE+1]], column: 1, scope: !{{[0-9]+}})25}26