1 // RUN: %clang_cc1 %s -fno-rtti -triple=i386-pc-win32 -emit-llvm -o %t.ll -fdump-vtable-layouts >%t
2 // RUN: FileCheck %s < %t
3 // RUN: FileCheck --check-prefix=MANGLING %s < %t.ll
15 // CHECK-LABEL: VFTable for 'A' in 'C' (1 entry)
16 // CHECK-NEXT: 0 | void A::f()
18 // CHECK-LABEL: VFTable for 'B' in 'C' (2 entries)
19 // CHECK-NEXT: 0 | void C::g()
20 // CHECK-NEXT: 1 | void B::h()
22 // CHECK-LABEL: VFTable indices for 'C' (1 entry).
23 // CHECK-NEXT: via vfptr at offset 4
24 // CHECK-NEXT: 0 | void C::g()
26 // MANGLING-DAG: @"??_7C@@6BA@@@"
27 // MANGLING-DAG: @"??_7C@@6BB@@@"
29 // Overrides only the right child's method (B::g),
30 // needs this adjustment but not thunks.
35 void build_vftable(C
*obj
) { obj
->g(); }