summaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/dllexport-dtor-thunks.cpp
blob: 52f9901620fab55b2a479c9954ad87b2f3f2a6fa (plain)
1
2
3
4
5
6
7
8
9
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"