forked from OSchip/llvm-project
[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:
parent
ec782b70d2
commit
1898045ba5
|
@ -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"
|
Loading…
Reference in New Issue