You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
636 B

// 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
namespace t1 {
struct A {
public:
virtual ~A();
virtual A *f();
};
struct B {
public:
virtual ~B();
private:
virtual B *f();
};
struct C : A, B {
virtual ~C();
protected:
virtual C *f();
};
C c;
}
// Main external C::f impl:
// CHECK-DAG: "?f@C@t1@@MEAAPEAU12@XZ"
// New slot in C's vftable for B, returns C* directly:
// CHECK-DAG: "?f@C@t1@@O7EAAPEAU12@XZ"
// Return-adjusting thunk in C's vftable for B:
// CHECK-DAG: "?f@C@t1@@W7EAAPEAUB@2@XZ"