[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / derived-to-virtual-base-class-calls-final.cpp
blob2d6cfe68cee025b3efaf10a6c0935979493cc352
1 // RUN: %clang_cc1 -no-opaque-pointers %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]+}}) %struct.B* @_Z1fR1D
13 B &f(D &d) {
14 // CHECK-NOT: load i8*, i8**
15 return d;