[ELF] Reorder SectionBase/InputSectionBase members
[llvm-project.git] / clang / test / CodeGenCXX / derived-to-virtual-base-class-calls-final.cpp
blobdf2d4b3ae7bee4bc7bdd7744a8ec674024d77149
1 // RUN: %clang_cc1 %s -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %s
3 struct A { int i; };
4 struct B { char j; };
5 struct C : A, B { int k; };
7 struct D final : virtual C {
8 D();
9 virtual void f();
12 // CHECK-LABEL: define {{.*}}dereferenceable({{[0-9]+}}) ptr @_Z1fR1D
13 B &f(D &d) {
14 // CHECK-NOT: load ptr, ptr %{{[0-9]+}}
15 return d;