llvm-project/clang/test/CodeGenCXX/debug-info-inlined.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
719 B
C++
Raw Normal View History

// RUN: %clang_cc1 -emit-llvm -triple i686-pc-windows-msvc19.0.24213 -gcodeview -debug-info-kind=limited -std=c++14 %s -o - | FileCheck %s
// PR33997.
2017-08-31 05:31:16 +08:00
struct WithDtor {
~WithDtor();
};
2017-08-31 05:31:16 +08:00
struct Base {
Base(WithDtor);
};
2017-08-31 05:31:16 +08:00
class Forward : Base {
using Base::Base;
};
2017-08-31 05:31:16 +08:00
class A : Forward {
A();
};
2017-08-31 05:31:16 +08:00
class B : Forward {
B();
};
2017-08-31 05:31:16 +08:00
A::A() : Forward(WithDtor()) {}
2017-08-31 05:31:16 +08:00
B::B() : Forward(WithDtor()) {}
2017-08-31 05:31:16 +08:00
// CHECK: define{{.*}}A
// CHECK-NOT: {{ ret }}
2017-08-31 05:31:16 +08:00
// CHECK: store %class.Forward* %
// CHECK-SAME: %class.Forward** %
// CHECK-SAME: !dbg ![[INL:[0-9]+]]
// CHECK: ![[INL]] = !DILocation(line: 10, column: 15, scope: ![[SP:[0-9]+]], inlinedAt:
// CHECK: ![[SP]] = distinct !DISubprogram(name: "Base", {{.*}} DISPFlagDefinition