Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / debug-info-vtable-optzn.cpp
blob8b49e951795bfe4ed7270e1f18d11a51176b67e8
1 // RUN: %clang_cc1 -emit-llvm -debug-info-kind=standalone -triple x86_64-apple-darwin %s -o - | FileCheck %s
2 // RUN: %clang_cc1 -emit-llvm -debug-info-kind=standalone -triple amd64-unknown-freebsd %s -o - | FileCheck %s
3 //
4 // This tests that the "emit debug info for a C++ class only in the
5 // module that has its vtable" optimization is disabled by default on
6 // Darwin and FreeBSD.
7 //
8 // CHECK: !DIDerivedType(tag: DW_TAG_member, name: "lost"
9 class A
11 virtual bool f() = 0;
12 int lost;
15 class B : public A
17 B *g();
20 B *B::g() {
21 return this;