llvm-project/clang/test/CodeGenCXX/vtable-layout.cpp
2010-02-11 17:18:51 +00:00

17 lines
397 B
C++

// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm-only -fdump-vtable-layouts 2>&1 | FileCheck %s
namespace Test1 {
// CHECK: Vtable for 'Test1::A' (3 entries).
// CHECK-NEXT: 0 | offset_to_top (0)
// CHECK-NEXT: 1 | Test1::A RTTI
// CHECK-NEXT: -- (Test1::A, 0) vtable address --
// CHECK-NEXT: 2 | Test1::A::f
struct A {
virtual void f();
};
void A::f() { }
}