2017-07-01 00:12:14 +08:00
|
|
|
// RUN: %clang_cc1 -mconstructor-aliases -fms-extensions %s -emit-llvm -o - -triple x86_64-windows-msvc | FileCheck %s
|
|
|
|
|
2019-12-03 07:22:44 +08:00
|
|
|
namespace test1 {
|
|
|
|
struct A { ~A(); };
|
|
|
|
struct __declspec(dllexport) B : virtual A { };
|
|
|
|
// CHECK: define weak_odr dso_local dllexport void @"??1B@test1@@QEAA@XZ"
|
|
|
|
// CHECK: define weak_odr dso_local dllexport void @"??_DB@test1@@QEAAXXZ"
|
|
|
|
}
|
|
|
|
|
2017-07-01 00:12:14 +08:00
|
|
|
struct __declspec(dllexport) A { virtual ~A(); };
|
|
|
|
struct __declspec(dllexport) B { virtual ~B(); };
|
|
|
|
struct __declspec(dllexport) C : A, B { virtual ~C(); };
|
|
|
|
C::~C() {}
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// CHECK: define dso_local dllexport void @"??1C@@UEAA@XZ"
|
2017-07-01 00:12:14 +08:00
|
|
|
// This thunk should *not* be dllexport.
|
2018-03-17 04:36:49 +08:00
|
|
|
// CHECK: define linkonce_odr dso_local i8* @"??_EC@@W7EAAPEAXI@Z"
|