[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / mangle-ms-thunks-covariant.cpp
blob47b1a38ffe1827ae81b056fd52084ddf53659fdb
1 // RUN: %clang_cc1 -fno-rtti-data -std=c++11 -fms-extensions -emit-llvm %s -o - -triple=x86_64-pc-win32 -fms-compatibility-version=19.00 | FileCheck %s --check-prefix=CHECK
3 namespace t1 {
4 struct A {
5 public:
6 virtual ~A();
7 virtual A *f();
8 };
9 struct B {
10 public:
11 virtual ~B();
13 private:
14 virtual B *f();
16 struct C : A, B {
17 virtual ~C();
19 protected:
20 virtual C *f();
22 C c;
24 // Main external C::f impl:
25 // CHECK-DAG: "?f@C@t1@@MEAAPEAU12@XZ"
26 // New slot in C's vftable for B, returns C* directly:
27 // CHECK-DAG: "?f@C@t1@@O7EAAPEAU12@XZ"
28 // Return-adjusting thunk in C's vftable for B:
29 // CHECK-DAG: "?f@C@t1@@W7EAAPEAUB@2@XZ"