2015-10-08 12:24:12 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm -debug-info-kind=standalone -triple x86_64-apple-darwin %s -o - | FileCheck %s
|
|
|
|
// RUN: %clang_cc1 -emit-llvm -debug-info-kind=standalone -triple amd64-unknown-freebsd %s -o - | FileCheck %s
|
2014-01-07 09:19:08 +08:00
|
|
|
//
|
|
|
|
// This tests that the "emit debug info for a C++ class only in the
|
|
|
|
// module that has its vtable" optimization is disabled by default on
|
2014-05-08 21:01:26 +08:00
|
|
|
// Darwin and FreeBSD.
|
2014-01-07 09:19:08 +08:00
|
|
|
//
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK: !DIDerivedType(tag: DW_TAG_member, name: "lost"
|
2014-01-07 09:19:08 +08:00
|
|
|
class A
|
|
|
|
{
|
|
|
|
virtual bool f() = 0;
|
|
|
|
int lost;
|
|
|
|
};
|
|
|
|
|
|
|
|
class B : public A
|
|
|
|
{
|
|
|
|
B *g();
|
|
|
|
};
|
|
|
|
|
|
|
|
B *B::g() {
|
|
|
|
return this;
|
|
|
|
}
|