[MS] Test that deleting destructor thunks are not exported

The MSVC linker emits the LNK4102 warning if they are.

llvm-svn: 306836
This commit is contained in:
Reid Kleckner 2017-06-30 16:12:14 +00:00
parent ec782b70d2
commit 1898045ba5
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
// 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() {}
// This thunk should *not* be dllexport.
// CHECK: define linkonce_odr i8* @"\01??_EC@@W7EAAPEAXI@Z"
// CHECK: define dllexport void @"\01??1C@@UEAA@XZ"