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
|
|
|
|
|
|
|
|
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 03:40:50 +08:00
|
|
|
// CHECK: define dso_local dllexport void @"\01??1C@@UEAA@XZ"
|
2017-07-01 00:12:14 +08:00
|
|
|
// This thunk should *not* be dllexport.
|
2018-02-24 03:30:48 +08:00
|
|
|
// CHECK: define linkonce_odr dso_local i8* @"\01??_EC@@W7EAAPEAXI@Z"
|