2017-08-24 05:24:12 +08:00
|
|
|
// 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-24 05:24:12 +08:00
|
|
|
};
|
2017-08-31 05:31:16 +08:00
|
|
|
struct Base {
|
|
|
|
Base(WithDtor);
|
2017-08-24 05:24:12 +08:00
|
|
|
};
|
2017-08-31 05:31:16 +08:00
|
|
|
class Forward : Base {
|
|
|
|
using Base::Base;
|
2017-08-24 05:24:12 +08:00
|
|
|
};
|
2017-08-31 05:31:16 +08:00
|
|
|
class A : Forward {
|
|
|
|
A();
|
2017-08-24 05:24:12 +08:00
|
|
|
};
|
2017-08-31 05:31:16 +08:00
|
|
|
class B : Forward {
|
|
|
|
B();
|
2017-08-24 05:24:12 +08:00
|
|
|
};
|
2017-08-31 05:31:16 +08:00
|
|
|
A::A() : Forward(WithDtor()) {}
|
2017-08-24 05:24:12 +08:00
|
|
|
|
2017-08-31 05:31:16 +08:00
|
|
|
B::B() : Forward(WithDtor()) {}
|
2017-08-24 05:24:12 +08:00
|
|
|
|
2017-08-31 05:31:16 +08:00
|
|
|
// CHECK: define{{.*}}A
|
2017-08-24 05:24:12 +08:00
|
|
|
// CHECK-NOT: {{ ret }}
|
2017-08-31 05:31:16 +08:00
|
|
|
// CHECK: store %class.Forward* %
|
|
|
|
// CHECK-SAME: %class.Forward** %
|
2017-08-24 05:24:12 +08:00
|
|
|
// CHECK-SAME: !dbg ![[INL:[0-9]+]]
|
|
|
|
|
2017-08-31 05:31:16 +08:00
|
|
|
// CHECK: ![[INL]] = !DILocation(line: 10, scope: ![[SP:[0-9]+]], inlinedAt:
|
|
|
|
// CHECK: ![[SP]] = distinct !DISubprogram(name: "Base", {{.*}}isDefinition: true
|