1 // RUN: %clang_cc1 -emit-llvm -g -triple x86_64-apple-darwin %s -o - | FileCheck %s
2 //
3 // This tests that the "emit debug info for a C++ class only in the
4 // module that has its vtable" optimization is disabled by default on
5 // Darwin.
6 //
7 // CHECK: [ DW_TAG_member ] [lost]
8 class A
9 {
10   virtual bool f() = 0;
11   int lost;
12 };
13 
14 class B : public A
15 {
16   B *g();
17 };
18 
19 B *B::g() {
20   return this;
21 }
22