23 lines · cpp
1// RUN: %clang_cc1 -emit-llvm -debug-info-kind=standalone -triple x86_64-apple-darwin %s -o - | FileCheck %s2// RUN: %clang_cc1 -emit-llvm -debug-info-kind=standalone -triple amd64-unknown-freebsd %s -o - | FileCheck %s3//4// This tests that the "emit debug info for a C++ class only in the5// module that has its vtable" optimization is disabled by default on6// Darwin and FreeBSD.7//8// CHECK: !DIDerivedType(tag: DW_TAG_member, name: "lost"9class A10{11 virtual bool f() = 0;12 int lost;13};14 15class B : public A16{17 B *g();18};19 20B *B::g() {21 return this;22}23