Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / OmitRTTIComponentABI / vtable-layout.cpp
blobbcc9264f5e5b84f3660dc227f3b268e78df3e81f
1 /// Ensure -fdump-vtable-layout omits the rtti component when passed -fexperimental-omit-vtable-rtti.
3 // RUN: %clang_cc1 %s -triple=aarch64-unknown-linux-gnu -fno-rtti -fexperimental-omit-vtable-rtti -emit-llvm-only -fdump-vtable-layouts | FileCheck %s
5 // CHECK: Vtable for 'A' (2 entries).
6 // CHECK-NEXT: 0 | offset_to_top (0)
7 // CHECK-NEXT: -- (A, 0) vtable address --
8 // CHECK-NEXT: 1 | void A::foo()
10 class A {
11 public:
12 virtual void foo();
15 void A::foo() {}
17 void A_foo(A *a) {
18 a->foo();