2016-05-24 14:37:14 +08:00
|
|
|
// RUN: %clang_cc1 -triple i686-windows-msvc -fms-compatibility -fms-compatibility-version=18 -emit-llvm -std=c++1y -O0 -o - %s | FileCheck --check-prefix=MSC --check-prefix=M32 %s
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-windows-msvc -fms-compatibility -fms-compatibility-version=18 -emit-llvm -std=c++1y -O0 -o - %s | FileCheck --check-prefix=MSC --check-prefix=M64 %s
|
|
|
|
// RUN: %clang_cc1 -triple i686-windows-msvc -fms-compatibility -fms-compatibility-version=19 -emit-llvm -std=c++1y -O0 -o - %s | FileCheck --check-prefix=M32VS2015 %s
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-windows-msvc -fms-compatibility -fms-compatibility-version=19 -emit-llvm -std=c++1y -O0 -o - %s | FileCheck --check-prefix=M64VS2015 %s
|
2014-07-18 04:25:23 +08:00
|
|
|
// RUN: %clang_cc1 -triple i686-windows-gnu -emit-llvm -std=c++1y -O0 -o - %s | FileCheck --check-prefix=GNU --check-prefix=G32 %s
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-windows-gnu -emit-llvm -std=c++1y -O0 -o - %s | FileCheck --check-prefix=GNU --check-prefix=G64 %s
|
2014-05-25 18:34:16 +08:00
|
|
|
|
|
|
|
// Helper structs to make templates more expressive.
|
|
|
|
struct ImplicitInst_Exported {};
|
|
|
|
struct ExplicitDecl_Exported {};
|
|
|
|
struct ExplicitInst_Exported {};
|
|
|
|
struct ExplicitSpec_Exported {};
|
|
|
|
struct ExplicitSpec_Def_Exported {};
|
|
|
|
struct ExplicitSpec_InlineDef_Exported {};
|
|
|
|
struct ExplicitSpec_NotExported {};
|
|
|
|
|
|
|
|
extern "C" void* malloc(__SIZE_TYPE__ size);
|
|
|
|
extern "C" void free(void* p);
|
|
|
|
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Class members
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
// Export individual members of a class.
|
|
|
|
struct ExportMembers {
|
|
|
|
struct Nested;
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define dso_local dllexport x86_thiscallcc void @"?normalDef@ExportMembers@@QAEXXZ"(%struct.ExportMembers* %this)
|
|
|
|
// M64-DAG: define dso_local dllexport void @"?normalDef@ExportMembers@@QEAAXXZ"(%struct.ExportMembers* %this)
|
|
|
|
// M32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @"?normalInclass@ExportMembers@@QAEXXZ"(%struct.ExportMembers* %this)
|
|
|
|
// M64-DAG: define weak_odr dso_local dllexport void @"?normalInclass@ExportMembers@@QEAAXXZ"(%struct.ExportMembers* %this)
|
|
|
|
// M32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @"?normalInlineDef@ExportMembers@@QAEXXZ"(%struct.ExportMembers* %this)
|
|
|
|
// M64-DAG: define weak_odr dso_local dllexport void @"?normalInlineDef@ExportMembers@@QEAAXXZ"(%struct.ExportMembers* %this)
|
|
|
|
// M32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @"?normalInlineDecl@ExportMembers@@QAEXXZ"(%struct.ExportMembers* %this)
|
|
|
|
// M64-DAG: define weak_odr dso_local dllexport void @"?normalInlineDecl@ExportMembers@@QEAAXXZ"(%struct.ExportMembers* %this)
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define dso_local dllexport x86_thiscallcc void @_ZN13ExportMembers9normalDefEv(%struct.ExportMembers* %this)
|
|
|
|
// G64-DAG: define dso_local dllexport void @_ZN13ExportMembers9normalDefEv(%struct.ExportMembers* %this)
|
|
|
|
// G32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @_ZN13ExportMembers13normalInclassEv(%struct.ExportMembers* %this)
|
|
|
|
// G64-DAG: define weak_odr dso_local dllexport void @_ZN13ExportMembers13normalInclassEv(%struct.ExportMembers* %this)
|
|
|
|
// G32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @_ZN13ExportMembers15normalInlineDefEv(%struct.ExportMembers* %this)
|
|
|
|
// G64-DAG: define weak_odr dso_local dllexport void @_ZN13ExportMembers15normalInlineDefEv(%struct.ExportMembers* %this)
|
|
|
|
// G32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @_ZN13ExportMembers16normalInlineDeclEv(%struct.ExportMembers* %this)
|
|
|
|
// G64-DAG: define weak_odr dso_local dllexport void @_ZN13ExportMembers16normalInlineDeclEv(%struct.ExportMembers* %this)
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define linkonce_odr dso_local x86_thiscallcc void @"?referencedNonExportedInClass@ExportMembers@@QAEXXZ"
|
2014-05-25 18:34:16 +08:00
|
|
|
__declspec(dllexport) void normalDef();
|
2014-06-07 01:36:17 +08:00
|
|
|
__declspec(dllexport) void normalInclass() { referencedNonExportedInClass(); }
|
2014-05-25 18:34:16 +08:00
|
|
|
__declspec(dllexport) void normalInlineDef();
|
|
|
|
__declspec(dllexport) inline void normalInlineDecl();
|
2014-06-07 01:36:17 +08:00
|
|
|
void referencedNonExportedInClass() {}
|
2014-05-25 18:34:16 +08:00
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define dso_local dllexport x86_thiscallcc void @"?virtualDef@ExportMembers@@UAEXXZ"(%struct.ExportMembers* %this)
|
|
|
|
// M64-DAG: define dso_local dllexport void @"?virtualDef@ExportMembers@@UEAAXXZ"(%struct.ExportMembers* %this)
|
|
|
|
// M32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @"?virtualInclass@ExportMembers@@UAEXXZ"(%struct.ExportMembers* %this)
|
|
|
|
// M64-DAG: define weak_odr dso_local dllexport void @"?virtualInclass@ExportMembers@@UEAAXXZ"(%struct.ExportMembers* %this)
|
|
|
|
// M32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @"?virtualInlineDef@ExportMembers@@UAEXXZ"(%struct.ExportMembers* %this)
|
|
|
|
// M64-DAG: define weak_odr dso_local dllexport void @"?virtualInlineDef@ExportMembers@@UEAAXXZ"(%struct.ExportMembers* %this)
|
|
|
|
// M32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @"?virtualInlineDecl@ExportMembers@@UAEXXZ"(%struct.ExportMembers* %this)
|
|
|
|
// M64-DAG: define weak_odr dso_local dllexport void @"?virtualInlineDecl@ExportMembers@@UEAAXXZ"(%struct.ExportMembers* %this)
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define dso_local dllexport x86_thiscallcc void @_ZN13ExportMembers10virtualDefEv(%struct.ExportMembers* %this)
|
|
|
|
// G64-DAG: define dso_local dllexport void @_ZN13ExportMembers10virtualDefEv(%struct.ExportMembers* %this)
|
|
|
|
// G32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @_ZN13ExportMembers14virtualInclassEv(%struct.ExportMembers* %this)
|
|
|
|
// G64-DAG: define weak_odr dso_local dllexport void @_ZN13ExportMembers14virtualInclassEv(%struct.ExportMembers* %this)
|
|
|
|
// G32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @_ZN13ExportMembers16virtualInlineDefEv(%struct.ExportMembers* %this)
|
|
|
|
// G64-DAG: define weak_odr dso_local dllexport void @_ZN13ExportMembers16virtualInlineDefEv(%struct.ExportMembers* %this)
|
|
|
|
// G32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @_ZN13ExportMembers17virtualInlineDeclEv(%struct.ExportMembers* %this)
|
|
|
|
// G64-DAG: define weak_odr dso_local dllexport void @_ZN13ExportMembers17virtualInlineDeclEv(%struct.ExportMembers* %this)
|
2014-05-25 18:34:16 +08:00
|
|
|
__declspec(dllexport) virtual void virtualDef();
|
|
|
|
__declspec(dllexport) virtual void virtualInclass() {}
|
|
|
|
__declspec(dllexport) virtual void virtualInlineDef();
|
|
|
|
__declspec(dllexport) virtual inline void virtualInlineDecl();
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// MSC-DAG: define dso_local dllexport void @"?staticDef@ExportMembers@@SAXXZ"()
|
|
|
|
// MSC-DAG: define weak_odr dso_local dllexport void @"?staticInclass@ExportMembers@@SAXXZ"()
|
|
|
|
// MSC-DAG: define weak_odr dso_local dllexport void @"?staticInlineDef@ExportMembers@@SAXXZ"()
|
|
|
|
// MSC-DAG: define weak_odr dso_local dllexport void @"?staticInlineDecl@ExportMembers@@SAXXZ"()
|
2018-02-24 03:30:48 +08:00
|
|
|
// GNU-DAG: define dso_local dllexport void @_ZN13ExportMembers9staticDefEv()
|
|
|
|
// GNU-DAG: define weak_odr dso_local dllexport void @_ZN13ExportMembers13staticInclassEv()
|
|
|
|
// GNU-DAG: define weak_odr dso_local dllexport void @_ZN13ExportMembers15staticInlineDefEv()
|
|
|
|
// GNU-DAG: define weak_odr dso_local dllexport void @_ZN13ExportMembers16staticInlineDeclEv()
|
2014-05-25 18:34:16 +08:00
|
|
|
__declspec(dllexport) static void staticDef();
|
|
|
|
__declspec(dllexport) static void staticInclass() {}
|
|
|
|
__declspec(dllexport) static void staticInlineDef();
|
|
|
|
__declspec(dllexport) static inline void staticInlineDecl();
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define dso_local dllexport x86_thiscallcc void @"?protectedDef@ExportMembers@@IAEXXZ"(%struct.ExportMembers* %this)
|
|
|
|
// M64-DAG: define dso_local dllexport void @"?protectedDef@ExportMembers@@IEAAXXZ"(%struct.ExportMembers* %this)
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define dso_local dllexport x86_thiscallcc void @_ZN13ExportMembers12protectedDefEv(%struct.ExportMembers* %this)
|
|
|
|
// G64-DAG: define dso_local dllexport void @_ZN13ExportMembers12protectedDefEv(%struct.ExportMembers* %this)
|
2018-03-17 04:36:49 +08:00
|
|
|
// MSC-DAG: define dso_local dllexport void @"?protectedStaticDef@ExportMembers@@KAXXZ"()
|
2018-02-24 03:30:48 +08:00
|
|
|
// GNU-DAG: define dso_local dllexport void @_ZN13ExportMembers18protectedStaticDefEv()
|
2014-05-25 18:34:16 +08:00
|
|
|
protected:
|
|
|
|
__declspec(dllexport) void protectedDef();
|
|
|
|
__declspec(dllexport) static void protectedStaticDef();
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define dso_local dllexport x86_thiscallcc void @"?privateDef@ExportMembers@@AAEXXZ"(%struct.ExportMembers* %this)
|
|
|
|
// M64-DAG: define dso_local dllexport void @"?privateDef@ExportMembers@@AEAAXXZ"(%struct.ExportMembers* %this)
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define dso_local dllexport x86_thiscallcc void @_ZN13ExportMembers10privateDefEv(%struct.ExportMembers* %this)
|
|
|
|
// G64-DAG: define dso_local dllexport void @_ZN13ExportMembers10privateDefEv(%struct.ExportMembers* %this)
|
2018-03-17 04:36:49 +08:00
|
|
|
// MSC-DAG: define dso_local dllexport void @"?privateStaticDef@ExportMembers@@CAXXZ"()
|
2018-02-24 03:30:48 +08:00
|
|
|
// GNU-DAG: define dso_local dllexport void @_ZN13ExportMembers16privateStaticDefEv()
|
2014-05-25 18:34:16 +08:00
|
|
|
private:
|
|
|
|
__declspec(dllexport) void privateDef();
|
|
|
|
__declspec(dllexport) static void privateStaticDef();
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define dso_local x86_thiscallcc void @"?ignored@ExportMembers@@QAEXXZ"(%struct.ExportMembers* %this)
|
|
|
|
// M64-DAG: define dso_local void @"?ignored@ExportMembers@@QEAAXXZ"(%struct.ExportMembers* %this)
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define dso_local x86_thiscallcc void @_ZN13ExportMembers7ignoredEv(%struct.ExportMembers* %this)
|
|
|
|
// G64-DAG: define dso_local void @_ZN13ExportMembers7ignoredEv(%struct.ExportMembers* %this)
|
2014-05-25 18:34:16 +08:00
|
|
|
public:
|
|
|
|
void ignored();
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// MSC-DAG: @"?StaticField@ExportMembers@@2HA" = dso_local dllexport global i32 1, align 4
|
|
|
|
// MSC-DAG: @"?StaticConstField@ExportMembers@@2HB" = dso_local dllexport constant i32 1, align 4
|
|
|
|
// MSC-DAG: @"?StaticConstFieldEqualInit@ExportMembers@@2HB" = weak_odr dso_local dllexport constant i32 1, comdat, align 4
|
|
|
|
// MSC-DAG: @"?StaticConstFieldBraceInit@ExportMembers@@2HB" = weak_odr dso_local dllexport constant i32 1, comdat, align 4
|
|
|
|
// MSC-DAG: @"?StaticConstFieldRefNotDef@ExportMembers@@2HB" = weak_odr dso_local dllexport constant i32 1, comdat, align 4
|
|
|
|
// MSC-DAG: @"?ConstexprField@ExportMembers@@2HB" = weak_odr dso_local dllexport constant i32 1, comdat, align 4
|
2018-02-24 03:30:48 +08:00
|
|
|
// GNU-DAG: @_ZN13ExportMembers11StaticFieldE = dso_local dllexport global i32 1, align 4
|
|
|
|
// GNU-DAG: @_ZN13ExportMembers16StaticConstFieldE = dso_local dllexport constant i32 1, align 4
|
|
|
|
// GNU-DAG: @_ZN13ExportMembers25StaticConstFieldEqualInitE = dso_local dllexport constant i32 1, align 4
|
|
|
|
// GNU-DAG: @_ZN13ExportMembers25StaticConstFieldBraceInitE = dso_local dllexport constant i32 1, align 4
|
|
|
|
// GNU-DAG: @_ZN13ExportMembers14ConstexprFieldE = dso_local dllexport constant i32 1, align 4
|
2014-05-25 18:34:16 +08:00
|
|
|
__declspec(dllexport) static int StaticField;
|
|
|
|
__declspec(dllexport) static const int StaticConstField;
|
|
|
|
__declspec(dllexport) static const int StaticConstFieldEqualInit = 1;
|
|
|
|
__declspec(dllexport) static const int StaticConstFieldBraceInit{1};
|
2015-05-20 19:57:02 +08:00
|
|
|
__declspec(dllexport) static const int StaticConstFieldRefNotDef = 1;
|
2014-05-25 18:34:16 +08:00
|
|
|
__declspec(dllexport) constexpr static int ConstexprField = 1;
|
|
|
|
};
|
|
|
|
|
|
|
|
void ExportMembers::normalDef() {}
|
|
|
|
inline void ExportMembers::normalInlineDef() {}
|
|
|
|
void ExportMembers::normalInlineDecl() {}
|
|
|
|
void ExportMembers::virtualDef() {}
|
|
|
|
inline void ExportMembers::virtualInlineDef() {}
|
|
|
|
void ExportMembers::virtualInlineDecl() {}
|
|
|
|
void ExportMembers::staticDef() {}
|
|
|
|
inline void ExportMembers::staticInlineDef() {}
|
|
|
|
void ExportMembers::staticInlineDecl() {}
|
|
|
|
void ExportMembers::ignored() {}
|
|
|
|
void ExportMembers::protectedDef() {}
|
|
|
|
void ExportMembers::protectedStaticDef() {}
|
|
|
|
void ExportMembers::privateDef() {}
|
|
|
|
void ExportMembers::privateStaticDef() {}
|
|
|
|
|
|
|
|
int ExportMembers::StaticField = 1;
|
|
|
|
const int ExportMembers::StaticConstField = 1;
|
|
|
|
const int ExportMembers::StaticConstFieldEqualInit;
|
|
|
|
const int ExportMembers::StaticConstFieldBraceInit;
|
2015-05-20 19:57:02 +08:00
|
|
|
int foo() { return ExportMembers::StaticConstFieldRefNotDef; }
|
2014-05-25 18:34:16 +08:00
|
|
|
constexpr int ExportMembers::ConstexprField;
|
|
|
|
|
|
|
|
|
|
|
|
// Export individual members of a nested class.
|
|
|
|
struct ExportMembers::Nested {
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define dso_local dllexport x86_thiscallcc void @"?normalDef@Nested@ExportMembers@@QAEXXZ"(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// M64-DAG: define dso_local dllexport void @"?normalDef@Nested@ExportMembers@@QEAAXXZ"(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// M32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @"?normalInclass@Nested@ExportMembers@@QAEXXZ"(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// M64-DAG: define weak_odr dso_local dllexport void @"?normalInclass@Nested@ExportMembers@@QEAAXXZ"(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// M32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @"?normalInlineDef@Nested@ExportMembers@@QAEXXZ"(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// M64-DAG: define weak_odr dso_local dllexport void @"?normalInlineDef@Nested@ExportMembers@@QEAAXXZ"(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// M32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @"?normalInlineDecl@Nested@ExportMembers@@QAEXXZ"(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// M64-DAG: define weak_odr dso_local dllexport void @"?normalInlineDecl@Nested@ExportMembers@@QEAAXXZ"(%"struct.ExportMembers::Nested"* %this)
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define dso_local dllexport x86_thiscallcc void @_ZN13ExportMembers6Nested9normalDefEv(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// G64-DAG: define dso_local dllexport void @_ZN13ExportMembers6Nested9normalDefEv(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// G32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @_ZN13ExportMembers6Nested13normalInclassEv(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// G64-DAG: define weak_odr dso_local dllexport void @_ZN13ExportMembers6Nested13normalInclassEv(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// G32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @_ZN13ExportMembers6Nested15normalInlineDefEv(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// G64-DAG: define weak_odr dso_local dllexport void @_ZN13ExportMembers6Nested15normalInlineDefEv(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// G32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @_ZN13ExportMembers6Nested16normalInlineDeclEv(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// G64-DAG: define weak_odr dso_local dllexport void @_ZN13ExportMembers6Nested16normalInlineDeclEv(%"struct.ExportMembers::Nested"* %this)
|
2014-05-25 18:34:16 +08:00
|
|
|
__declspec(dllexport) void normalDef();
|
|
|
|
__declspec(dllexport) void normalInclass() {}
|
|
|
|
__declspec(dllexport) void normalInlineDef();
|
|
|
|
__declspec(dllexport) inline void normalInlineDecl();
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define dso_local dllexport x86_thiscallcc void @"?virtualDef@Nested@ExportMembers@@UAEXXZ"(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// M64-DAG: define dso_local dllexport void @"?virtualDef@Nested@ExportMembers@@UEAAXXZ"(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// M32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @"?virtualInclass@Nested@ExportMembers@@UAEXXZ"(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// M64-DAG: define weak_odr dso_local dllexport void @"?virtualInclass@Nested@ExportMembers@@UEAAXXZ"(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// M32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @"?virtualInlineDef@Nested@ExportMembers@@UAEXXZ"(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// M64-DAG: define weak_odr dso_local dllexport void @"?virtualInlineDef@Nested@ExportMembers@@UEAAXXZ"(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// M32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @"?virtualInlineDecl@Nested@ExportMembers@@UAEXXZ"(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// M64-DAG: define weak_odr dso_local dllexport void @"?virtualInlineDecl@Nested@ExportMembers@@UEAAXXZ"(%"struct.ExportMembers::Nested"* %this)
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define dso_local dllexport x86_thiscallcc void @_ZN13ExportMembers6Nested10virtualDefEv(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// G64-DAG: define dso_local dllexport void @_ZN13ExportMembers6Nested10virtualDefEv(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// G32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @_ZN13ExportMembers6Nested14virtualInclassEv(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// G64-DAG: define weak_odr dso_local dllexport void @_ZN13ExportMembers6Nested14virtualInclassEv(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// G32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @_ZN13ExportMembers6Nested16virtualInlineDefEv(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// G64-DAG: define weak_odr dso_local dllexport void @_ZN13ExportMembers6Nested16virtualInlineDefEv(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// G32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @_ZN13ExportMembers6Nested17virtualInlineDeclEv(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// G64-DAG: define weak_odr dso_local dllexport void @_ZN13ExportMembers6Nested17virtualInlineDeclEv(%"struct.ExportMembers::Nested"* %this)
|
2014-05-25 18:34:16 +08:00
|
|
|
__declspec(dllexport) virtual void virtualDef();
|
|
|
|
__declspec(dllexport) virtual void virtualInclass() {}
|
|
|
|
__declspec(dllexport) virtual void virtualInlineDef();
|
|
|
|
__declspec(dllexport) virtual inline void virtualInlineDecl();
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// MSC-DAG: define dso_local dllexport void @"?staticDef@Nested@ExportMembers@@SAXXZ"()
|
|
|
|
// MSC-DAG: define weak_odr dso_local dllexport void @"?staticInclass@Nested@ExportMembers@@SAXXZ"()
|
|
|
|
// MSC-DAG: define weak_odr dso_local dllexport void @"?staticInlineDef@Nested@ExportMembers@@SAXXZ"()
|
|
|
|
// MSC-DAG: define weak_odr dso_local dllexport void @"?staticInlineDecl@Nested@ExportMembers@@SAXXZ"()
|
2018-02-24 03:30:48 +08:00
|
|
|
// GNU-DAG: define dso_local dllexport void @_ZN13ExportMembers6Nested9staticDefEv()
|
|
|
|
// GNU-DAG: define weak_odr dso_local dllexport void @_ZN13ExportMembers6Nested13staticInclassEv()
|
|
|
|
// GNU-DAG: define weak_odr dso_local dllexport void @_ZN13ExportMembers6Nested15staticInlineDefEv()
|
|
|
|
// GNU-DAG: define weak_odr dso_local dllexport void @_ZN13ExportMembers6Nested16staticInlineDeclEv()
|
2014-05-25 18:34:16 +08:00
|
|
|
__declspec(dllexport) static void staticDef();
|
|
|
|
__declspec(dllexport) static void staticInclass() {}
|
|
|
|
__declspec(dllexport) static void staticInlineDef();
|
|
|
|
__declspec(dllexport) static inline void staticInlineDecl();
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define dso_local dllexport x86_thiscallcc void @"?protectedDef@Nested@ExportMembers@@IAEXXZ"(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// M64-DAG: define dso_local dllexport void @"?protectedDef@Nested@ExportMembers@@IEAAXXZ"(%"struct.ExportMembers::Nested"* %this)
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define dso_local dllexport x86_thiscallcc void @_ZN13ExportMembers6Nested12protectedDefEv(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// G64-DAG: define dso_local dllexport void @_ZN13ExportMembers6Nested12protectedDefEv(%"struct.ExportMembers::Nested"* %this)
|
2018-03-17 04:36:49 +08:00
|
|
|
// MSC-DAG: define dso_local dllexport void @"?protectedStaticDef@Nested@ExportMembers@@KAXXZ"()
|
2018-02-24 03:30:48 +08:00
|
|
|
// GNU-DAG: define dso_local dllexport void @_ZN13ExportMembers6Nested18protectedStaticDefEv()
|
2014-05-25 18:34:16 +08:00
|
|
|
protected:
|
|
|
|
__declspec(dllexport) void protectedDef();
|
|
|
|
__declspec(dllexport) static void protectedStaticDef();
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define dso_local dllexport x86_thiscallcc void @"?privateDef@Nested@ExportMembers@@AAEXXZ"(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// M64-DAG: define dso_local dllexport void @"?privateDef@Nested@ExportMembers@@AEAAXXZ"(%"struct.ExportMembers::Nested"* %this)
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define dso_local dllexport x86_thiscallcc void @_ZN13ExportMembers6Nested10privateDefEv(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// G64-DAG: define dso_local dllexport void @_ZN13ExportMembers6Nested10privateDefEv(%"struct.ExportMembers::Nested"* %this)
|
2018-03-17 04:36:49 +08:00
|
|
|
// MSC-DAG: define dso_local dllexport void @"?privateStaticDef@Nested@ExportMembers@@CAXXZ"()
|
2018-02-24 03:30:48 +08:00
|
|
|
// GNU-DAG: define dso_local dllexport void @_ZN13ExportMembers6Nested16privateStaticDefEv()
|
2014-05-25 18:34:16 +08:00
|
|
|
private:
|
|
|
|
__declspec(dllexport) void privateDef();
|
|
|
|
__declspec(dllexport) static void privateStaticDef();
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define dso_local x86_thiscallcc void @"?ignored@Nested@ExportMembers@@QAEXXZ"(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// M64-DAG: define dso_local void @"?ignored@Nested@ExportMembers@@QEAAXXZ"(%"struct.ExportMembers::Nested"* %this)
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define dso_local x86_thiscallcc void @_ZN13ExportMembers6Nested7ignoredEv(%"struct.ExportMembers::Nested"* %this)
|
|
|
|
// G64-DAG: define dso_local void @_ZN13ExportMembers6Nested7ignoredEv(%"struct.ExportMembers::Nested"* %this)
|
2014-05-25 18:34:16 +08:00
|
|
|
public:
|
|
|
|
void ignored();
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// MSC-DAG: @"?StaticField@Nested@ExportMembers@@2HA" = dso_local dllexport global i32 1, align 4
|
|
|
|
// MSC-DAG: @"?StaticConstField@Nested@ExportMembers@@2HB" = dso_local dllexport constant i32 1, align 4
|
|
|
|
// MSC-DAG: @"?StaticConstFieldEqualInit@Nested@ExportMembers@@2HB" = weak_odr dso_local dllexport constant i32 1, comdat, align 4
|
|
|
|
// MSC-DAG: @"?StaticConstFieldBraceInit@Nested@ExportMembers@@2HB" = weak_odr dso_local dllexport constant i32 1, comdat, align 4
|
|
|
|
// MSC-DAG: @"?StaticConstFieldRefNotDef@Nested@ExportMembers@@2HB" = weak_odr dso_local dllexport constant i32 1, comdat, align 4
|
|
|
|
// MSC-DAG: @"?ConstexprField@Nested@ExportMembers@@2HB" = weak_odr dso_local dllexport constant i32 1, comdat, align 4
|
2018-02-24 03:30:48 +08:00
|
|
|
// GNU-DAG: @_ZN13ExportMembers6Nested11StaticFieldE = dso_local dllexport global i32 1, align 4
|
|
|
|
// GNU-DAG: @_ZN13ExportMembers6Nested16StaticConstFieldE = dso_local dllexport constant i32 1, align 4
|
|
|
|
// GNU-DAG: @_ZN13ExportMembers6Nested25StaticConstFieldEqualInitE = dso_local dllexport constant i32 1, align 4
|
|
|
|
// GNU-DAG: @_ZN13ExportMembers6Nested25StaticConstFieldBraceInitE = dso_local dllexport constant i32 1, align 4
|
|
|
|
// GNU-DAG: @_ZN13ExportMembers6Nested14ConstexprFieldE = dso_local dllexport constant i32 1, align 4
|
2014-05-25 18:34:16 +08:00
|
|
|
__declspec(dllexport) static int StaticField;
|
|
|
|
__declspec(dllexport) static const int StaticConstField;
|
|
|
|
__declspec(dllexport) static const int StaticConstFieldEqualInit = 1;
|
|
|
|
__declspec(dllexport) static const int StaticConstFieldBraceInit{1};
|
2015-05-20 19:57:02 +08:00
|
|
|
__declspec(dllexport) static const int StaticConstFieldRefNotDef = 1;
|
2014-05-25 18:34:16 +08:00
|
|
|
__declspec(dllexport) constexpr static int ConstexprField = 1;
|
|
|
|
};
|
|
|
|
|
|
|
|
void ExportMembers::Nested::normalDef() {}
|
|
|
|
inline void ExportMembers::Nested::normalInlineDef() {}
|
|
|
|
void ExportMembers::Nested::normalInlineDecl() {}
|
|
|
|
void ExportMembers::Nested::virtualDef() {}
|
|
|
|
inline void ExportMembers::Nested::virtualInlineDef() {}
|
|
|
|
void ExportMembers::Nested::virtualInlineDecl() {}
|
|
|
|
void ExportMembers::Nested::staticDef() {}
|
|
|
|
inline void ExportMembers::Nested::staticInlineDef() {}
|
|
|
|
void ExportMembers::Nested::staticInlineDecl() {}
|
|
|
|
void ExportMembers::Nested::ignored() {}
|
|
|
|
void ExportMembers::Nested::protectedDef() {}
|
|
|
|
void ExportMembers::Nested::protectedStaticDef() {}
|
|
|
|
void ExportMembers::Nested::privateDef() {}
|
|
|
|
void ExportMembers::Nested::privateStaticDef() {}
|
|
|
|
|
|
|
|
int ExportMembers::Nested::StaticField = 1;
|
|
|
|
const int ExportMembers::Nested::StaticConstField = 1;
|
|
|
|
const int ExportMembers::Nested::StaticConstFieldEqualInit;
|
|
|
|
const int ExportMembers::Nested::StaticConstFieldBraceInit;
|
2015-05-20 19:57:02 +08:00
|
|
|
int fooNested() { return ExportMembers::Nested::StaticConstFieldRefNotDef; }
|
2014-05-25 18:34:16 +08:00
|
|
|
constexpr int ExportMembers::Nested::ConstexprField;
|
|
|
|
|
|
|
|
|
|
|
|
// Export special member functions.
|
|
|
|
struct ExportSpecials {
|
2018-10-15 23:43:00 +08:00
|
|
|
// M32-DAG: define dso_local dllexport x86_thiscallcc %struct.ExportSpecials* @"??0ExportSpecials@@QAE@XZ"(%struct.ExportSpecials* returned %this)
|
|
|
|
// M64-DAG: define dso_local dllexport %struct.ExportSpecials* @"??0ExportSpecials@@QEAA@XZ"(%struct.ExportSpecials* returned %this)
|
|
|
|
// G32-DAG: define dso_local dllexport x86_thiscallcc void @_ZN14ExportSpecialsC1Ev(%struct.ExportSpecials* %this)
|
|
|
|
// G64-DAG: define dso_local dllexport void @_ZN14ExportSpecialsC1Ev(%struct.ExportSpecials* %this)
|
|
|
|
// G32-DAG: define dso_local dllexport x86_thiscallcc void @_ZN14ExportSpecialsC2Ev(%struct.ExportSpecials* %this)
|
|
|
|
// G64-DAG: define dso_local dllexport void @_ZN14ExportSpecialsC2Ev(%struct.ExportSpecials* %this)
|
2014-05-25 18:34:16 +08:00
|
|
|
__declspec(dllexport) ExportSpecials();
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define dso_local dllexport x86_thiscallcc void @"??1ExportSpecials@@QAE@XZ"(%struct.ExportSpecials* %this)
|
|
|
|
// M64-DAG: define dso_local dllexport void @"??1ExportSpecials@@QEAA@XZ"(%struct.ExportSpecials* %this)
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define dso_local dllexport x86_thiscallcc void @_ZN14ExportSpecialsD1Ev(%struct.ExportSpecials* %this)
|
|
|
|
// G64-DAG: define dso_local dllexport void @_ZN14ExportSpecialsD1Ev(%struct.ExportSpecials* %this)
|
|
|
|
// G32-DAG: define dso_local dllexport x86_thiscallcc void @_ZN14ExportSpecialsD2Ev(%struct.ExportSpecials* %this)
|
|
|
|
// G64-DAG: define dso_local dllexport void @_ZN14ExportSpecialsD2Ev(%struct.ExportSpecials* %this)
|
2014-05-25 18:34:16 +08:00
|
|
|
__declspec(dllexport) ~ExportSpecials();
|
|
|
|
|
2020-05-19 02:29:11 +08:00
|
|
|
// M32-DAG: define dso_local dllexport x86_thiscallcc %struct.ExportSpecials* @"??0ExportSpecials@@QAE@ABU0@@Z"(%struct.ExportSpecials* returned %this, %struct.ExportSpecials* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// M64-DAG: define dso_local dllexport %struct.ExportSpecials* @"??0ExportSpecials@@QEAA@AEBU0@@Z"(%struct.ExportSpecials* returned %this, %struct.ExportSpecials* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// G32-DAG: define dso_local dllexport x86_thiscallcc void @_ZN14ExportSpecialsC1ERKS_(%struct.ExportSpecials* %this, %struct.ExportSpecials* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// G64-DAG: define dso_local dllexport void @_ZN14ExportSpecialsC1ERKS_(%struct.ExportSpecials* %this, %struct.ExportSpecials* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// G32-DAG: define dso_local dllexport x86_thiscallcc void @_ZN14ExportSpecialsC2ERKS_(%struct.ExportSpecials* %this, %struct.ExportSpecials* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// G64-DAG: define dso_local dllexport void @_ZN14ExportSpecialsC2ERKS_(%struct.ExportSpecials* %this, %struct.ExportSpecials* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
2014-05-25 18:34:16 +08:00
|
|
|
__declspec(dllexport) ExportSpecials(const ExportSpecials&);
|
|
|
|
|
2020-05-19 02:29:11 +08:00
|
|
|
// M32-DAG: define dso_local dllexport x86_thiscallcc nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %struct.ExportSpecials* @"??4ExportSpecials@@QAEAAU0@ABU0@@Z"(%struct.ExportSpecials* %this, %struct.ExportSpecials* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// M64-DAG: define dso_local dllexport nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %struct.ExportSpecials* @"??4ExportSpecials@@QEAAAEAU0@AEBU0@@Z"(%struct.ExportSpecials* %this, %struct.ExportSpecials* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// G32-DAG: define dso_local dllexport x86_thiscallcc nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %struct.ExportSpecials* @_ZN14ExportSpecialsaSERKS_(%struct.ExportSpecials* %this, %struct.ExportSpecials* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// G64-DAG: define dso_local dllexport nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %struct.ExportSpecials* @_ZN14ExportSpecialsaSERKS_(%struct.ExportSpecials* %this, %struct.ExportSpecials* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
2014-05-25 18:34:16 +08:00
|
|
|
__declspec(dllexport) ExportSpecials& operator=(const ExportSpecials&);
|
|
|
|
|
2020-05-19 02:29:11 +08:00
|
|
|
// M32-DAG: define dso_local dllexport x86_thiscallcc %struct.ExportSpecials* @"??0ExportSpecials@@QAE@$$QAU0@@Z"(%struct.ExportSpecials* returned %this, %struct.ExportSpecials* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// M64-DAG: define dso_local dllexport %struct.ExportSpecials* @"??0ExportSpecials@@QEAA@$$QEAU0@@Z"(%struct.ExportSpecials* returned %this, %struct.ExportSpecials* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// G32-DAG: define dso_local dllexport x86_thiscallcc void @_ZN14ExportSpecialsC1EOS_(%struct.ExportSpecials* %this, %struct.ExportSpecials* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// G64-DAG: define dso_local dllexport void @_ZN14ExportSpecialsC1EOS_(%struct.ExportSpecials* %this, %struct.ExportSpecials* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// G32-DAG: define dso_local dllexport x86_thiscallcc void @_ZN14ExportSpecialsC2EOS_(%struct.ExportSpecials* %this, %struct.ExportSpecials* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// G64-DAG: define dso_local dllexport void @_ZN14ExportSpecialsC2EOS_(%struct.ExportSpecials* %this, %struct.ExportSpecials* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
2014-05-25 18:34:16 +08:00
|
|
|
__declspec(dllexport) ExportSpecials(ExportSpecials&&);
|
|
|
|
|
2020-05-19 02:29:11 +08:00
|
|
|
// M32-DAG: define dso_local dllexport x86_thiscallcc nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %struct.ExportSpecials* @"??4ExportSpecials@@QAEAAU0@$$QAU0@@Z"(%struct.ExportSpecials* %this, %struct.ExportSpecials* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// M64-DAG: define dso_local dllexport nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %struct.ExportSpecials* @"??4ExportSpecials@@QEAAAEAU0@$$QEAU0@@Z"(%struct.ExportSpecials* %this, %struct.ExportSpecials* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// G32-DAG: define dso_local dllexport x86_thiscallcc nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %struct.ExportSpecials* @_ZN14ExportSpecialsaSEOS_(%struct.ExportSpecials* %this, %struct.ExportSpecials* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// G64-DAG: define dso_local dllexport nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %struct.ExportSpecials* @_ZN14ExportSpecialsaSEOS_(%struct.ExportSpecials* %this, %struct.ExportSpecials* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
2014-05-25 18:34:16 +08:00
|
|
|
__declspec(dllexport) ExportSpecials& operator=(ExportSpecials&&);
|
|
|
|
};
|
|
|
|
ExportSpecials::ExportSpecials() {}
|
|
|
|
ExportSpecials::~ExportSpecials() {}
|
|
|
|
ExportSpecials::ExportSpecials(const ExportSpecials&) {}
|
|
|
|
ExportSpecials& ExportSpecials::operator=(const ExportSpecials&) { return *this; }
|
|
|
|
ExportSpecials::ExportSpecials(ExportSpecials&&) {}
|
|
|
|
ExportSpecials& ExportSpecials::operator=(ExportSpecials&&) { return *this; }
|
|
|
|
|
|
|
|
|
|
|
|
// Export class with inline special member functions.
|
|
|
|
struct ExportInlineSpecials {
|
2018-10-15 23:43:00 +08:00
|
|
|
// M32-DAG: define weak_odr dso_local dllexport x86_thiscallcc %struct.ExportInlineSpecials* @"??0ExportInlineSpecials@@QAE@XZ"(%struct.ExportInlineSpecials* returned %this)
|
2018-03-17 04:36:49 +08:00
|
|
|
// M64-DAG: define weak_odr dso_local dllexport %struct.ExportInlineSpecials* @"??0ExportInlineSpecials@@QEAA@XZ"(
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @_ZN20ExportInlineSpecialsC1Ev(
|
|
|
|
// G64-DAG: define weak_odr dso_local dllexport void @_ZN20ExportInlineSpecialsC1Ev(
|
2014-05-25 18:34:16 +08:00
|
|
|
__declspec(dllexport) ExportInlineSpecials() {}
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @"??1ExportInlineSpecials@@QAE@XZ"(
|
|
|
|
// M64-DAG: define weak_odr dso_local dllexport void @"??1ExportInlineSpecials@@QEAA@XZ"(
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @_ZN20ExportInlineSpecialsD1Ev(
|
|
|
|
// G64-DAG: define weak_odr dso_local dllexport void @_ZN20ExportInlineSpecialsD1Ev(
|
2014-05-25 18:34:16 +08:00
|
|
|
__declspec(dllexport) ~ExportInlineSpecials() {}
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define weak_odr dso_local dllexport x86_thiscallcc %struct.ExportInlineSpecials* @"??0ExportInlineSpecials@@QAE@ABU0@@Z"(
|
|
|
|
// M64-DAG: define weak_odr dso_local dllexport %struct.ExportInlineSpecials* @"??0ExportInlineSpecials@@QEAA@AEBU0@@Z"(
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @_ZN20ExportInlineSpecialsC1ERKS_(
|
|
|
|
// G64-DAG: define weak_odr dso_local dllexport void @_ZN20ExportInlineSpecialsC1ERKS_(
|
2014-05-25 18:34:16 +08:00
|
|
|
__declspec(dllexport) inline ExportInlineSpecials(const ExportInlineSpecials&);
|
|
|
|
|
2020-05-19 02:29:11 +08:00
|
|
|
// M32-DAG: define weak_odr dso_local dllexport x86_thiscallcc nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %struct.ExportInlineSpecials* @"??4ExportInlineSpecials@@QAEAAU0@ABU0@@Z"(
|
|
|
|
// M64-DAG: define weak_odr dso_local dllexport nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %struct.ExportInlineSpecials* @"??4ExportInlineSpecials@@QEAAAEAU0@AEBU0@@Z"(
|
|
|
|
// G32-DAG: define weak_odr dso_local dllexport x86_thiscallcc nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %struct.ExportInlineSpecials* @_ZN20ExportInlineSpecialsaSERKS_(
|
|
|
|
// G64-DAG: define weak_odr dso_local dllexport nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %struct.ExportInlineSpecials* @_ZN20ExportInlineSpecialsaSERKS_(
|
2014-05-25 18:34:16 +08:00
|
|
|
__declspec(dllexport) ExportInlineSpecials& operator=(const ExportInlineSpecials&);
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define weak_odr dso_local dllexport x86_thiscallcc %struct.ExportInlineSpecials* @"??0ExportInlineSpecials@@QAE@$$QAU0@@Z"(
|
|
|
|
// M64-DAG: define weak_odr dso_local dllexport %struct.ExportInlineSpecials* @"??0ExportInlineSpecials@@QEAA@$$QEAU0@@Z"(
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @_ZN20ExportInlineSpecialsC1EOS_(
|
|
|
|
// G64-DAG: define weak_odr dso_local dllexport void @_ZN20ExportInlineSpecialsC1EOS_(
|
2014-05-25 18:34:16 +08:00
|
|
|
__declspec(dllexport) ExportInlineSpecials(ExportInlineSpecials&&) {}
|
|
|
|
|
2020-05-19 02:29:11 +08:00
|
|
|
// M32-DAG: define weak_odr dso_local dllexport x86_thiscallcc nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %struct.ExportInlineSpecials* @"??4ExportInlineSpecials@@QAEAAU0@$$QAU0@@Z"(
|
|
|
|
// M64-DAG: define weak_odr dso_local dllexport nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %struct.ExportInlineSpecials* @"??4ExportInlineSpecials@@QEAAAEAU0@$$QEAU0@@Z"(
|
|
|
|
// G32-DAG: define weak_odr dso_local dllexport x86_thiscallcc nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %struct.ExportInlineSpecials* @_ZN20ExportInlineSpecialsaSEOS_(
|
|
|
|
// G64-DAG: define weak_odr dso_local dllexport nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %struct.ExportInlineSpecials* @_ZN20ExportInlineSpecialsaSEOS_(
|
2014-05-25 18:34:16 +08:00
|
|
|
__declspec(dllexport) ExportInlineSpecials& operator=(ExportInlineSpecials&&) { return *this; }
|
|
|
|
};
|
|
|
|
ExportInlineSpecials::ExportInlineSpecials(const ExportInlineSpecials&) {}
|
|
|
|
inline ExportInlineSpecials& ExportInlineSpecials::operator=(const ExportInlineSpecials&) { return *this; }
|
|
|
|
|
|
|
|
|
|
|
|
// Export defaulted member function definitions.
|
|
|
|
struct ExportDefaultedDefs {
|
|
|
|
__declspec(dllexport) ExportDefaultedDefs();
|
|
|
|
__declspec(dllexport) ~ExportDefaultedDefs();
|
|
|
|
__declspec(dllexport) inline ExportDefaultedDefs(const ExportDefaultedDefs&);
|
|
|
|
__declspec(dllexport) ExportDefaultedDefs& operator=(const ExportDefaultedDefs&);
|
|
|
|
__declspec(dllexport) ExportDefaultedDefs(ExportDefaultedDefs&&);
|
|
|
|
__declspec(dllexport) ExportDefaultedDefs& operator=(ExportDefaultedDefs&&);
|
|
|
|
};
|
|
|
|
|
2018-10-15 23:43:00 +08:00
|
|
|
// M32-DAG: define dso_local dllexport x86_thiscallcc %struct.ExportDefaultedDefs* @"??0ExportDefaultedDefs@@QAE@XZ"(%struct.ExportDefaultedDefs* returned %this)
|
|
|
|
// M64-DAG: define dso_local dllexport %struct.ExportDefaultedDefs* @"??0ExportDefaultedDefs@@QEAA@XZ"(%struct.ExportDefaultedDefs* returned %this)
|
|
|
|
// G32-DAG: define dso_local dllexport x86_thiscallcc void @_ZN19ExportDefaultedDefsC1Ev(%struct.ExportDefaultedDefs* %this)
|
|
|
|
// G64-DAG: define dso_local dllexport void @_ZN19ExportDefaultedDefsC1Ev(%struct.ExportDefaultedDefs* %this)
|
|
|
|
// G32-DAG: define dso_local dllexport x86_thiscallcc void @_ZN19ExportDefaultedDefsC2Ev(%struct.ExportDefaultedDefs* %this)
|
|
|
|
// G64-DAG: define dso_local dllexport void @_ZN19ExportDefaultedDefsC2Ev(%struct.ExportDefaultedDefs* %this)
|
2014-05-25 18:34:16 +08:00
|
|
|
__declspec(dllexport) ExportDefaultedDefs::ExportDefaultedDefs() = default;
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define dso_local dllexport x86_thiscallcc void @"??1ExportDefaultedDefs@@QAE@XZ"(%struct.ExportDefaultedDefs* %this)
|
|
|
|
// M64-DAG: define dso_local dllexport void @"??1ExportDefaultedDefs@@QEAA@XZ"(%struct.ExportDefaultedDefs* %this)
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define dso_local dllexport x86_thiscallcc void @_ZN19ExportDefaultedDefsD1Ev(%struct.ExportDefaultedDefs* %this)
|
|
|
|
// G64-DAG: define dso_local dllexport void @_ZN19ExportDefaultedDefsD1Ev(%struct.ExportDefaultedDefs* %this)
|
|
|
|
// G32-DAG: define dso_local dllexport x86_thiscallcc void @_ZN19ExportDefaultedDefsD2Ev(%struct.ExportDefaultedDefs* %this)
|
|
|
|
// G64-DAG: define dso_local dllexport void @_ZN19ExportDefaultedDefsD2Ev(%struct.ExportDefaultedDefs* %this)
|
2014-05-25 18:34:16 +08:00
|
|
|
ExportDefaultedDefs::~ExportDefaultedDefs() = default;
|
|
|
|
|
2020-05-19 02:29:11 +08:00
|
|
|
// M32-DAG: define weak_odr dso_local dllexport x86_thiscallcc %struct.ExportDefaultedDefs* @"??0ExportDefaultedDefs@@QAE@ABU0@@Z"(%struct.ExportDefaultedDefs* returned %this, %struct.ExportDefaultedDefs* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// M64-DAG: define weak_odr dso_local dllexport %struct.ExportDefaultedDefs* @"??0ExportDefaultedDefs@@QEAA@AEBU0@@Z"(%struct.ExportDefaultedDefs* returned %this, %struct.ExportDefaultedDefs* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// G32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @_ZN19ExportDefaultedDefsC1ERKS_(%struct.ExportDefaultedDefs* %this, %struct.ExportDefaultedDefs* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// G64-DAG: define weak_odr dso_local dllexport void @_ZN19ExportDefaultedDefsC1ERKS_(%struct.ExportDefaultedDefs* %this, %struct.ExportDefaultedDefs* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// G32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @_ZN19ExportDefaultedDefsC2ERKS_(%struct.ExportDefaultedDefs* %this, %struct.ExportDefaultedDefs* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// G64-DAG: define weak_odr dso_local dllexport void @_ZN19ExportDefaultedDefsC2ERKS_(%struct.ExportDefaultedDefs* %this, %struct.ExportDefaultedDefs* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
2014-05-25 18:34:16 +08:00
|
|
|
__declspec(dllexport) ExportDefaultedDefs::ExportDefaultedDefs(const ExportDefaultedDefs&) = default;
|
|
|
|
|
2020-05-19 02:29:11 +08:00
|
|
|
// M32-DAG: define weak_odr dso_local dllexport x86_thiscallcc nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %struct.ExportDefaultedDefs* @"??4ExportDefaultedDefs@@QAEAAU0@ABU0@@Z"(%struct.ExportDefaultedDefs* %this, %struct.ExportDefaultedDefs* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// M64-DAG: define weak_odr dso_local dllexport nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %struct.ExportDefaultedDefs* @"??4ExportDefaultedDefs@@QEAAAEAU0@AEBU0@@Z"(%struct.ExportDefaultedDefs* %this, %struct.ExportDefaultedDefs* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// G32-DAG: define weak_odr dso_local dllexport x86_thiscallcc nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %struct.ExportDefaultedDefs* @_ZN19ExportDefaultedDefsaSERKS_(%struct.ExportDefaultedDefs* %this, %struct.ExportDefaultedDefs* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// G64-DAG: define weak_odr dso_local dllexport nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %struct.ExportDefaultedDefs* @_ZN19ExportDefaultedDefsaSERKS_(%struct.ExportDefaultedDefs* %this, %struct.ExportDefaultedDefs* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
2014-05-25 18:34:16 +08:00
|
|
|
inline ExportDefaultedDefs& ExportDefaultedDefs::operator=(const ExportDefaultedDefs&) = default;
|
|
|
|
|
2020-05-19 02:29:11 +08:00
|
|
|
// M32-DAG: define dso_local dllexport x86_thiscallcc %struct.ExportDefaultedDefs* @"??0ExportDefaultedDefs@@QAE@$$QAU0@@Z"(%struct.ExportDefaultedDefs* returned %this, %struct.ExportDefaultedDefs* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// M64-DAG: define dso_local dllexport %struct.ExportDefaultedDefs* @"??0ExportDefaultedDefs@@QEAA@$$QEAU0@@Z"(%struct.ExportDefaultedDefs* returned %this, %struct.ExportDefaultedDefs* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// G32-DAG: define dso_local dllexport x86_thiscallcc void @_ZN19ExportDefaultedDefsC1EOS_(%struct.ExportDefaultedDefs* %this, %struct.ExportDefaultedDefs* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// G64-DAG: define dso_local dllexport void @_ZN19ExportDefaultedDefsC1EOS_(%struct.ExportDefaultedDefs* %this, %struct.ExportDefaultedDefs* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// G32-DAG: define dso_local dllexport x86_thiscallcc void @_ZN19ExportDefaultedDefsC2EOS_(%struct.ExportDefaultedDefs* %this, %struct.ExportDefaultedDefs* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// G64-DAG: define dso_local dllexport void @_ZN19ExportDefaultedDefsC2EOS_(%struct.ExportDefaultedDefs* %this, %struct.ExportDefaultedDefs* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
2014-05-25 18:34:16 +08:00
|
|
|
__declspec(dllexport) ExportDefaultedDefs::ExportDefaultedDefs(ExportDefaultedDefs&&) = default;
|
|
|
|
|
2020-05-19 02:29:11 +08:00
|
|
|
// M32-DAG: define dso_local dllexport x86_thiscallcc nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %struct.ExportDefaultedDefs* @"??4ExportDefaultedDefs@@QAEAAU0@$$QAU0@@Z"(%struct.ExportDefaultedDefs* %this, %struct.ExportDefaultedDefs* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// M64-DAG: define dso_local dllexport nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %struct.ExportDefaultedDefs* @"??4ExportDefaultedDefs@@QEAAAEAU0@$$QEAU0@@Z"(%struct.ExportDefaultedDefs* %this, %struct.ExportDefaultedDefs* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// G32-DAG: define dso_local dllexport x86_thiscallcc nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %struct.ExportDefaultedDefs* @_ZN19ExportDefaultedDefsaSEOS_(%struct.ExportDefaultedDefs* %this, %struct.ExportDefaultedDefs* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// G64-DAG: define dso_local dllexport nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %struct.ExportDefaultedDefs* @_ZN19ExportDefaultedDefsaSEOS_(%struct.ExportDefaultedDefs* %this, %struct.ExportDefaultedDefs* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
2014-05-25 18:34:16 +08:00
|
|
|
ExportDefaultedDefs& ExportDefaultedDefs::operator=(ExportDefaultedDefs&&) = default;
|
|
|
|
|
|
|
|
|
2016-05-24 14:37:14 +08:00
|
|
|
// Export defaulted member function definitions declared inside class.
|
|
|
|
struct ExportDefaultedInclassDefs {
|
|
|
|
__declspec(dllexport) ExportDefaultedInclassDefs() = default;
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32VS2013-DAG: define weak_odr dso_local dllexport x86_thiscallcc %struct.ExportDefaultedInclassDefs* @"??0ExportDefaultedInclassDefs@@QAE@XZ"(%struct.ExportDefaultedInclassDefs* returned %this)
|
|
|
|
// M64VS2013-DAG: define weak_odr dso_local dllexport %struct.ExportDefaultedInclassDefs* @"??0ExportDefaultedInclassDefs@@QEAA@XZ"(%struct.ExportDefaultedInclassDefs* returned %this)
|
|
|
|
// M32VS2015-NOT: define weak_odr dso_local dllexport x86_thiscallcc %struct.ExportDefaultedInclassDefs* @"??0ExportDefaultedInclassDefs@@QAE@XZ"(%struct.ExportDefaultedInclassDefs* returned %this)
|
|
|
|
// M64VS2015-NOT: define weak_odr dso_local dllexport %struct.ExportDefaultedInclassDefs* @"??0ExportDefaultedInclassDefs@@QEAA@XZ"(%struct.ExportDefaultedInclassDefs* returned %this)
|
2016-05-24 14:37:14 +08:00
|
|
|
|
|
|
|
__declspec(dllexport) ~ExportDefaultedInclassDefs() = default;
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32VS2013-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @"??1ExportDefaultedInclassDefs@@QAE@XZ"(%struct.ExportDefaultedInclassDefs* %this)
|
|
|
|
// M64VS2013-DAG: define weak_odr dso_local dllexport void @"??1ExportDefaultedInclassDefs@@QEAA@XZ"(%struct.ExportDefaultedInclassDefs* %this)
|
|
|
|
// M32VS2015-NOT: define weak_odr dso_local dllexport x86_thiscallcc void @"??1ExportDefaultedInclassDefs@@QAE@XZ"(%struct.ExportDefaultedInclassDefs* %this)
|
|
|
|
// M64VS2015-NOT: define weak_odr dso_local dllexport void @"??1ExportDefaultedInclassDefs@@QEAA@XZ"(%struct.ExportDefaultedInclassDefs* %this)
|
2016-05-24 14:37:14 +08:00
|
|
|
|
|
|
|
__declspec(dllexport) ExportDefaultedInclassDefs(const ExportDefaultedInclassDefs&) = default;
|
2020-05-19 02:29:11 +08:00
|
|
|
// M32VS2013-DAG: define weak_odr dso_local dllexport x86_thiscallcc %struct.ExportDefaultedInclassDefs* @"??0ExportDefaultedInclassDefs@@QAE@ABU0@@Z"(%struct.ExportDefaultedInclassDefs* returned %this, %struct.ExportDefaultedInclassDefs* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// M64VS2013-DAG: define weak_odr dso_local dllexport %struct.ExportDefaultedInclassDefs* @"??0ExportDefaultedInclassDefs@@QEAA@AEBU0@@Z"(%struct.ExportDefaultedInclassDefs* returned %this, %struct.ExportDefaultedInclassDefs* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// M32VS2015-NOT: define weak_odr dso_local dllexport x86_thiscallcc %struct.ExportDefaultedInclassDefs* @"??0ExportDefaultedInclassDefs@@QAE@ABU0@@Z"(%struct.ExportDefaultedInclassDefs* returned %this, %struct.ExportDefaultedInclassDefs* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// M64VS2015-NOT: define weak_odr dso_local dllexport %struct.ExportDefaultedInclassDefs* @"??0ExportDefaultedInclassDefs@@QEAA@AEBU0@@Z"(%struct.ExportDefaultedInclassDefs* returned %this, %struct.ExportDefaultedInclassDefs* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
2016-05-24 14:37:14 +08:00
|
|
|
|
|
|
|
__declspec(dllexport) ExportDefaultedInclassDefs& operator=(const ExportDefaultedInclassDefs&) = default;
|
2020-05-19 02:29:11 +08:00
|
|
|
// M32-DAG: define weak_odr dso_local dllexport x86_thiscallcc nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %struct.ExportDefaultedInclassDefs* @"??4ExportDefaultedInclassDefs@@QAEAAU0@ABU0@@Z"(%struct.ExportDefaultedInclassDefs* %this, %struct.ExportDefaultedInclassDefs* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
|
|
|
// M64-DAG: define weak_odr dso_local dllexport nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %struct.ExportDefaultedInclassDefs* @"??4ExportDefaultedInclassDefs@@QEAAAEAU0@AEBU0@@Z"(%struct.ExportDefaultedInclassDefs* %this, %struct.ExportDefaultedInclassDefs* nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0)
|
2016-05-24 14:37:14 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2014-05-25 18:34:16 +08:00
|
|
|
// Export allocation functions.
|
|
|
|
struct ExportAlloc {
|
|
|
|
__declspec(dllexport) void* operator new(__SIZE_TYPE__);
|
|
|
|
__declspec(dllexport) void* operator new[](__SIZE_TYPE__);
|
|
|
|
__declspec(dllexport) void operator delete(void*);
|
|
|
|
__declspec(dllexport) void operator delete[](void*);
|
|
|
|
};
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define dso_local dllexport i8* @"??2ExportAlloc@@SAPAXI@Z"(i32 %n)
|
|
|
|
// M64-DAG: define dso_local dllexport i8* @"??2ExportAlloc@@SAPEAX_K@Z"(i64 %n)
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define dso_local dllexport i8* @_ZN11ExportAllocnwEj(i32 %n)
|
|
|
|
// G64-DAG: define dso_local dllexport i8* @_ZN11ExportAllocnwEy(i64 %n)
|
2014-05-25 18:34:16 +08:00
|
|
|
void* ExportAlloc::operator new(__SIZE_TYPE__ n) { return malloc(n); }
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define dso_local dllexport i8* @"??_UExportAlloc@@SAPAXI@Z"(i32 %n)
|
|
|
|
// M64-DAG: define dso_local dllexport i8* @"??_UExportAlloc@@SAPEAX_K@Z"(i64 %n)
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define dso_local dllexport i8* @_ZN11ExportAllocnaEj(i32 %n)
|
|
|
|
// G64-DAG: define dso_local dllexport i8* @_ZN11ExportAllocnaEy(i64 %n)
|
2014-05-25 18:34:16 +08:00
|
|
|
void* ExportAlloc::operator new[](__SIZE_TYPE__ n) { return malloc(n); }
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define dso_local dllexport void @"??3ExportAlloc@@SAXPAX@Z"(i8* %p)
|
|
|
|
// M64-DAG: define dso_local dllexport void @"??3ExportAlloc@@SAXPEAX@Z"(i8* %p)
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define dso_local dllexport void @_ZN11ExportAllocdlEPv(i8* %p)
|
|
|
|
// G64-DAG: define dso_local dllexport void @_ZN11ExportAllocdlEPv(i8* %p)
|
2014-05-25 18:34:16 +08:00
|
|
|
void ExportAlloc::operator delete(void* p) { free(p); }
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define dso_local dllexport void @"??_VExportAlloc@@SAXPAX@Z"(i8* %p)
|
|
|
|
// M64-DAG: define dso_local dllexport void @"??_VExportAlloc@@SAXPEAX@Z"(i8* %p)
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define dso_local dllexport void @_ZN11ExportAllocdaEPv(i8* %p)
|
|
|
|
// G64-DAG: define dso_local dllexport void @_ZN11ExportAllocdaEPv(i8* %p)
|
2014-05-25 18:34:16 +08:00
|
|
|
void ExportAlloc::operator delete[](void* p) { free(p); }
|
|
|
|
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Class member templates
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
struct MemFunTmpl {
|
|
|
|
template<typename T> void normalDef() {}
|
|
|
|
template<typename T> __declspec(dllexport) void exportedNormal() {}
|
|
|
|
template<typename T> static void staticDef() {}
|
|
|
|
template<typename T> __declspec(dllexport) static void exportedStatic() {}
|
|
|
|
};
|
|
|
|
|
|
|
|
// Export implicit instantiation of an exported member function template.
|
|
|
|
void useMemFunTmpl() {
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @"??$exportedNormal@UImplicitInst_Exported@@@MemFunTmpl@@QAEXXZ"(%struct.MemFunTmpl* %this)
|
|
|
|
// M64-DAG: define weak_odr dso_local dllexport void @"??$exportedNormal@UImplicitInst_Exported@@@MemFunTmpl@@QEAAXXZ"(%struct.MemFunTmpl* %this)
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @_ZN10MemFunTmpl14exportedNormalI21ImplicitInst_ExportedEEvv(%struct.MemFunTmpl* %this)
|
|
|
|
// G64-DAG: define weak_odr dso_local dllexport void @_ZN10MemFunTmpl14exportedNormalI21ImplicitInst_ExportedEEvv(%struct.MemFunTmpl* %this)
|
2014-05-25 18:34:16 +08:00
|
|
|
MemFunTmpl().exportedNormal<ImplicitInst_Exported>();
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// MSC-DAG: define weak_odr dso_local dllexport void @"??$exportedStatic@UImplicitInst_Exported@@@MemFunTmpl@@SAXXZ"()
|
2018-02-24 03:30:48 +08:00
|
|
|
// GNU-DAG: define weak_odr dso_local dllexport void @_ZN10MemFunTmpl14exportedStaticI21ImplicitInst_ExportedEEvv()
|
2014-05-25 18:34:16 +08:00
|
|
|
MemFunTmpl().exportedStatic<ImplicitInst_Exported>();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Export explicit instantiation declaration of an exported member function
|
|
|
|
// template.
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @"??$exportedNormal@UExplicitDecl_Exported@@@MemFunTmpl@@QAEXXZ"(%struct.MemFunTmpl* %this)
|
|
|
|
// M64-DAG: define weak_odr dso_local dllexport void @"??$exportedNormal@UExplicitDecl_Exported@@@MemFunTmpl@@QEAAXXZ"(%struct.MemFunTmpl* %this)
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @_ZN10MemFunTmpl14exportedNormalI21ExplicitDecl_ExportedEEvv(%struct.MemFunTmpl* %this)
|
|
|
|
// G64-DAG: define weak_odr dso_local dllexport void @_ZN10MemFunTmpl14exportedNormalI21ExplicitDecl_ExportedEEvv(%struct.MemFunTmpl* %this)
|
2014-05-25 18:34:16 +08:00
|
|
|
extern template void MemFunTmpl::exportedNormal<ExplicitDecl_Exported>();
|
|
|
|
template void MemFunTmpl::exportedNormal<ExplicitDecl_Exported>();
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// MSC-DAG: define weak_odr dso_local dllexport void @"??$exportedStatic@UExplicitDecl_Exported@@@MemFunTmpl@@SAXXZ"()
|
2018-02-24 03:30:48 +08:00
|
|
|
// GNU-DAG: define weak_odr dso_local dllexport void @_ZN10MemFunTmpl14exportedStaticI21ExplicitDecl_ExportedEEvv()
|
2014-05-25 18:34:16 +08:00
|
|
|
extern template void MemFunTmpl::exportedStatic<ExplicitDecl_Exported>();
|
|
|
|
template void MemFunTmpl::exportedStatic<ExplicitDecl_Exported>();
|
|
|
|
|
|
|
|
|
|
|
|
// Export explicit instantiation definition of an exported member function
|
|
|
|
// template.
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @"??$exportedNormal@UExplicitInst_Exported@@@MemFunTmpl@@QAEXXZ"(%struct.MemFunTmpl* %this)
|
|
|
|
// M64-DAG: define weak_odr dso_local dllexport void @"??$exportedNormal@UExplicitInst_Exported@@@MemFunTmpl@@QEAAXXZ"(%struct.MemFunTmpl* %this)
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @_ZN10MemFunTmpl14exportedNormalI21ExplicitInst_ExportedEEvv(%struct.MemFunTmpl* %this)
|
|
|
|
// G64-DAG: define weak_odr dso_local dllexport void @_ZN10MemFunTmpl14exportedNormalI21ExplicitInst_ExportedEEvv(%struct.MemFunTmpl* %this)
|
2014-05-25 18:34:16 +08:00
|
|
|
template void MemFunTmpl::exportedNormal<ExplicitInst_Exported>();
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// MSC-DAG: define weak_odr dso_local dllexport void @"??$exportedStatic@UExplicitInst_Exported@@@MemFunTmpl@@SAXXZ"()
|
2018-02-24 03:30:48 +08:00
|
|
|
// GNU-DAG: define weak_odr dso_local dllexport void @_ZN10MemFunTmpl14exportedStaticI21ExplicitInst_ExportedEEvv()
|
2014-05-25 18:34:16 +08:00
|
|
|
template void MemFunTmpl::exportedStatic<ExplicitInst_Exported>();
|
|
|
|
|
|
|
|
|
|
|
|
// Export specialization of an exported member function template.
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define dso_local dllexport x86_thiscallcc void @"??$exportedNormal@UExplicitSpec_Def_Exported@@@MemFunTmpl@@QAEXXZ"(%struct.MemFunTmpl* %this)
|
|
|
|
// M64-DAG: define dso_local dllexport void @"??$exportedNormal@UExplicitSpec_Def_Exported@@@MemFunTmpl@@QEAAXXZ"(%struct.MemFunTmpl* %this)
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define dso_local dllexport x86_thiscallcc void @_ZN10MemFunTmpl14exportedNormalI25ExplicitSpec_Def_ExportedEEvv(%struct.MemFunTmpl* %this)
|
|
|
|
// G64-DAG: define dso_local dllexport void @_ZN10MemFunTmpl14exportedNormalI25ExplicitSpec_Def_ExportedEEvv(%struct.MemFunTmpl* %this)
|
2014-05-25 18:34:16 +08:00
|
|
|
template<> __declspec(dllexport) void MemFunTmpl::exportedNormal<ExplicitSpec_Def_Exported>() {}
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @"??$exportedNormal@UExplicitSpec_InlineDef_Exported@@@MemFunTmpl@@QAEXXZ"(%struct.MemFunTmpl* %this)
|
|
|
|
// M64-DAG: define weak_odr dso_local dllexport void @"??$exportedNormal@UExplicitSpec_InlineDef_Exported@@@MemFunTmpl@@QEAAXXZ"(%struct.MemFunTmpl* %this)
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @_ZN10MemFunTmpl14exportedNormalI31ExplicitSpec_InlineDef_ExportedEEvv(%struct.MemFunTmpl* %this)
|
|
|
|
// G64-DAG: define weak_odr dso_local dllexport void @_ZN10MemFunTmpl14exportedNormalI31ExplicitSpec_InlineDef_ExportedEEvv(%struct.MemFunTmpl* %this)
|
2014-05-25 18:34:16 +08:00
|
|
|
template<> __declspec(dllexport) inline void MemFunTmpl::exportedNormal<ExplicitSpec_InlineDef_Exported>() {}
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// MSC-DAG: define dso_local dllexport void @"??$exportedStatic@UExplicitSpec_Def_Exported@@@MemFunTmpl@@SAXXZ"()
|
2018-02-24 03:30:48 +08:00
|
|
|
// GNU-DAG: define dso_local dllexport void @_ZN10MemFunTmpl14exportedStaticI25ExplicitSpec_Def_ExportedEEvv()
|
2014-05-25 18:34:16 +08:00
|
|
|
template<> __declspec(dllexport) void MemFunTmpl::exportedStatic<ExplicitSpec_Def_Exported>() {}
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// MSC-DAG: define weak_odr dso_local dllexport void @"??$exportedStatic@UExplicitSpec_InlineDef_Exported@@@MemFunTmpl@@SAXXZ"()
|
2018-02-24 03:30:48 +08:00
|
|
|
// GNU-DAG: define weak_odr dso_local dllexport void @_ZN10MemFunTmpl14exportedStaticI31ExplicitSpec_InlineDef_ExportedEEvv()
|
2014-05-25 18:34:16 +08:00
|
|
|
template<> __declspec(dllexport) inline void MemFunTmpl::exportedStatic<ExplicitSpec_InlineDef_Exported>() {}
|
|
|
|
|
|
|
|
|
|
|
|
// Not exporting specialization of an exported member function template without
|
2018-02-24 03:30:48 +08:00
|
|
|
// explicit dso_local dllexport.
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define dso_local x86_thiscallcc void @"??$exportedNormal@UExplicitSpec_NotExported@@@MemFunTmpl@@QAEXXZ"(%struct.MemFunTmpl* %this)
|
|
|
|
// M64-DAG: define dso_local void @"??$exportedNormal@UExplicitSpec_NotExported@@@MemFunTmpl@@QEAAXXZ"(%struct.MemFunTmpl* %this)
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define dso_local x86_thiscallcc void @_ZN10MemFunTmpl14exportedNormalI24ExplicitSpec_NotExportedEEvv(%struct.MemFunTmpl* %this)
|
|
|
|
// G64-DAG: define dso_local void @_ZN10MemFunTmpl14exportedNormalI24ExplicitSpec_NotExportedEEvv(%struct.MemFunTmpl* %this)
|
2014-05-25 18:34:16 +08:00
|
|
|
template<> void MemFunTmpl::exportedNormal<ExplicitSpec_NotExported>() {}
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define dso_local void @"??$exportedStatic@UExplicitSpec_NotExported@@@MemFunTmpl@@SAXXZ"()
|
2018-02-24 03:30:48 +08:00
|
|
|
// GNU-DAG: define dso_local void @_ZN10MemFunTmpl14exportedStaticI24ExplicitSpec_NotExportedEEvv()
|
2014-05-25 18:34:16 +08:00
|
|
|
template<> void MemFunTmpl::exportedStatic<ExplicitSpec_NotExported>() {}
|
|
|
|
|
|
|
|
|
|
|
|
// Export explicit instantiation declaration of a non-exported member function
|
|
|
|
// template.
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @"??$normalDef@UExplicitDecl_Exported@@@MemFunTmpl@@QAEXXZ"(%struct.MemFunTmpl* %this)
|
|
|
|
// M64-DAG: define weak_odr dso_local dllexport void @"??$normalDef@UExplicitDecl_Exported@@@MemFunTmpl@@QEAAXXZ"(%struct.MemFunTmpl* %this)
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @_ZN10MemFunTmpl9normalDefI21ExplicitDecl_ExportedEEvv(%struct.MemFunTmpl* %this)
|
|
|
|
// G64-DAG: define weak_odr dso_local dllexport void @_ZN10MemFunTmpl9normalDefI21ExplicitDecl_ExportedEEvv(%struct.MemFunTmpl* %this)
|
2014-05-25 18:34:16 +08:00
|
|
|
extern template __declspec(dllexport) void MemFunTmpl::normalDef<ExplicitDecl_Exported>();
|
|
|
|
template __declspec(dllexport) void MemFunTmpl::normalDef<ExplicitDecl_Exported>();
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define weak_odr dso_local dllexport void @"??$staticDef@UExplicitDecl_Exported@@@MemFunTmpl@@SAXXZ"()
|
2018-02-24 03:30:48 +08:00
|
|
|
// GNU-DAG: define weak_odr dso_local dllexport void @_ZN10MemFunTmpl9staticDefI21ExplicitDecl_ExportedEEvv()
|
2014-05-25 18:34:16 +08:00
|
|
|
extern template __declspec(dllexport) void MemFunTmpl::staticDef<ExplicitDecl_Exported>();
|
|
|
|
template __declspec(dllexport) void MemFunTmpl::staticDef<ExplicitDecl_Exported>();
|
|
|
|
|
|
|
|
|
|
|
|
// Export explicit instantiation definition of a non-exported member function
|
|
|
|
// template.
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @"??$normalDef@UExplicitInst_Exported@@@MemFunTmpl@@QAEXXZ"(%struct.MemFunTmpl* %this)
|
|
|
|
// M64-DAG: define weak_odr dso_local dllexport void @"??$normalDef@UExplicitInst_Exported@@@MemFunTmpl@@QEAAXXZ"(%struct.MemFunTmpl* %this)
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @_ZN10MemFunTmpl9normalDefI21ExplicitInst_ExportedEEvv(%struct.MemFunTmpl* %this)
|
|
|
|
// G64-DAG: define weak_odr dso_local dllexport void @_ZN10MemFunTmpl9normalDefI21ExplicitInst_ExportedEEvv(%struct.MemFunTmpl* %this)
|
2014-05-25 18:34:16 +08:00
|
|
|
template __declspec(dllexport) void MemFunTmpl::normalDef<ExplicitInst_Exported>();
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// MSC-DAG: define weak_odr dso_local dllexport void @"??$staticDef@UExplicitInst_Exported@@@MemFunTmpl@@SAXXZ"()
|
2018-02-24 03:30:48 +08:00
|
|
|
// GNU-DAG: define weak_odr dso_local dllexport void @_ZN10MemFunTmpl9staticDefI21ExplicitInst_ExportedEEvv()
|
2014-05-25 18:34:16 +08:00
|
|
|
template __declspec(dllexport) void MemFunTmpl::staticDef<ExplicitInst_Exported>();
|
|
|
|
|
|
|
|
|
|
|
|
// Export specialization of a non-exported member function template.
|
2018-03-17 04:36:49 +08:00
|
|
|
// M32-DAG: define dso_local dllexport x86_thiscallcc void @"??$normalDef@UExplicitSpec_Def_Exported@@@MemFunTmpl@@QAEXXZ"(%struct.MemFunTmpl* %this)
|
|
|
|
// M64-DAG: define dso_local dllexport void @"??$normalDef@UExplicitSpec_Def_Exported@@@MemFunTmpl@@QEAAXXZ"(%struct.MemFunTmpl* %this)
|
|
|
|
// M32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @"??$normalDef@UExplicitSpec_InlineDef_Exported@@@MemFunTmpl@@QAEXXZ"(%struct.MemFunTmpl* %this)
|
|
|
|
// M64-DAG: define weak_odr dso_local dllexport void @"??$normalDef@UExplicitSpec_InlineDef_Exported@@@MemFunTmpl@@QEAAXXZ"(%struct.MemFunTmpl* %this)
|
2018-02-24 03:30:48 +08:00
|
|
|
// G32-DAG: define dso_local dllexport x86_thiscallcc void @_ZN10MemFunTmpl9normalDefI25ExplicitSpec_Def_ExportedEEvv(%struct.MemFunTmpl* %this)
|
|
|
|
// G64-DAG: define dso_local dllexport void @_ZN10MemFunTmpl9normalDefI25ExplicitSpec_Def_ExportedEEvv(%struct.MemFunTmpl* %this)
|
|
|
|
// G32-DAG: define weak_odr dso_local dllexport x86_thiscallcc void @_ZN10MemFunTmpl9normalDefI31ExplicitSpec_InlineDef_ExportedEEvv(%struct.MemFunTmpl* %this)
|
|
|
|
// G64-DAG: define weak_odr dso_local dllexport void @_ZN10MemFunTmpl9normalDefI31ExplicitSpec_InlineDef_ExportedEEvv(%struct.MemFunTmpl* %this)
|
2014-05-25 18:34:16 +08:00
|
|
|
template<> __declspec(dllexport) void MemFunTmpl::normalDef<ExplicitSpec_Def_Exported>() {}
|
|
|
|
template<> __declspec(dllexport) inline void MemFunTmpl::normalDef<ExplicitSpec_InlineDef_Exported>() {}
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// MSC-DAG: define dso_local dllexport void @"??$staticDef@UExplicitSpec_Def_Exported@@@MemFunTmpl@@SAXXZ"()
|
|
|
|
// MSC-DAG: define weak_odr dso_local dllexport void @"??$staticDef@UExplicitSpec_InlineDef_Exported@@@MemFunTmpl@@SAXXZ"()
|
2018-02-24 03:30:48 +08:00
|
|
|
// GNU-DAG: define dso_local dllexport void @_ZN10MemFunTmpl9staticDefI25ExplicitSpec_Def_ExportedEEvv()
|
|
|
|
// GNU-DAG: define weak_odr dso_local dllexport void @_ZN10MemFunTmpl9staticDefI31ExplicitSpec_InlineDef_ExportedEEvv()
|
2014-05-25 18:34:16 +08:00
|
|
|
template<> __declspec(dllexport) void MemFunTmpl::staticDef<ExplicitSpec_Def_Exported>() {}
|
|
|
|
template<> __declspec(dllexport) inline void MemFunTmpl::staticDef<ExplicitSpec_InlineDef_Exported>() {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct MemVarTmpl {
|
|
|
|
template<typename T> static const int StaticVar = 1;
|
|
|
|
template<typename T> __declspec(dllexport) static const int ExportedStaticVar = 1;
|
|
|
|
};
|
|
|
|
template<typename T> const int MemVarTmpl::StaticVar;
|
|
|
|
template<typename T> const int MemVarTmpl::ExportedStaticVar;
|
|
|
|
|
|
|
|
// Export implicit instantiation of an exported member variable template.
|
2018-03-17 04:36:49 +08:00
|
|
|
// MSC-DAG: @"??$ExportedStaticVar@UImplicitInst_Exported@@@MemVarTmpl@@2HB" = weak_odr dso_local dllexport constant i32 1, comdat, align 4
|
2018-02-24 03:30:48 +08:00
|
|
|
// GNU-DAG: @_ZN10MemVarTmpl17ExportedStaticVarI21ImplicitInst_ExportedEE = weak_odr dso_local dllexport constant i32 1, comdat, align 4
|
2014-05-25 18:34:16 +08:00
|
|
|
int useMemVarTmpl() { return MemVarTmpl::ExportedStaticVar<ImplicitInst_Exported>; }
|
|
|
|
|
|
|
|
// Export explicit instantiation declaration of an exported member variable
|
|
|
|
// template.
|
2018-03-17 04:36:49 +08:00
|
|
|
// MSC-DAG: @"??$ExportedStaticVar@UExplicitDecl_Exported@@@MemVarTmpl@@2HB" = weak_odr dso_local dllexport constant i32 1, comdat, align 4
|
2018-02-24 03:30:48 +08:00
|
|
|
// GNU-DAG: @_ZN10MemVarTmpl17ExportedStaticVarI21ExplicitDecl_ExportedEE = weak_odr dso_local dllexport constant i32 1, comdat, align 4
|
2014-05-25 18:34:16 +08:00
|
|
|
extern template const int MemVarTmpl::ExportedStaticVar<ExplicitDecl_Exported>;
|
|
|
|
template const int MemVarTmpl::ExportedStaticVar<ExplicitDecl_Exported>;
|
|
|
|
|
|
|
|
// Export explicit instantiation definition of an exported member variable
|
|
|
|
// template.
|
2018-03-17 04:36:49 +08:00
|
|
|
// MSC-DAG: @"??$ExportedStaticVar@UExplicitInst_Exported@@@MemVarTmpl@@2HB" = weak_odr dso_local dllexport constant i32 1, comdat, align 4
|
2018-02-24 03:30:48 +08:00
|
|
|
// GNU-DAG: @_ZN10MemVarTmpl17ExportedStaticVarI21ExplicitInst_ExportedEE = weak_odr dso_local dllexport constant i32 1, comdat, align 4
|
2014-05-25 18:34:16 +08:00
|
|
|
template const int MemVarTmpl::ExportedStaticVar<ExplicitInst_Exported>;
|
|
|
|
|
|
|
|
// Export specialization of an exported member variable template.
|
2018-03-17 04:36:49 +08:00
|
|
|
// MSC-DAG: @"??$ExportedStaticVar@UExplicitSpec_Def_Exported@@@MemVarTmpl@@2HB" = weak_odr dso_local dllexport constant i32 1, comdat, align 4
|
2018-02-24 03:30:48 +08:00
|
|
|
// GNU-DAG: @_ZN10MemVarTmpl17ExportedStaticVarI25ExplicitSpec_Def_ExportedEE = dso_local dllexport constant i32 1, align 4
|
2014-05-25 18:34:16 +08:00
|
|
|
template<> __declspec(dllexport) const int MemVarTmpl::ExportedStaticVar<ExplicitSpec_Def_Exported> = 1;
|
|
|
|
|
|
|
|
// Not exporting specialization of an exported member variable template without
|
|
|
|
// explicit dllexport.
|
2018-03-17 04:36:49 +08:00
|
|
|
// MSC-DAG: @"??$ExportedStaticVar@UExplicitSpec_NotExported@@@MemVarTmpl@@2HB" = weak_odr dso_local constant i32 1, comdat, align 4
|
2018-02-24 03:30:48 +08:00
|
|
|
// GNU-DAG: @_ZN10MemVarTmpl17ExportedStaticVarI24ExplicitSpec_NotExportedEE = dso_local constant i32 1, align 4
|
2014-05-25 18:34:16 +08:00
|
|
|
template<> const int MemVarTmpl::ExportedStaticVar<ExplicitSpec_NotExported> = 1;
|
|
|
|
|
|
|
|
|
|
|
|
// Export explicit instantiation declaration of a non-exported member variable
|
|
|
|
// template.
|
2018-03-17 04:36:49 +08:00
|
|
|
// MSC-DAG: @"??$StaticVar@UExplicitDecl_Exported@@@MemVarTmpl@@2HB" = weak_odr dso_local dllexport constant i32 1, comdat, align 4
|
2018-02-24 03:30:48 +08:00
|
|
|
// GNU-DAG: @_ZN10MemVarTmpl9StaticVarI21ExplicitDecl_ExportedEE = weak_odr dso_local dllexport constant i32 1, comdat, align 4
|
2014-05-25 18:34:16 +08:00
|
|
|
extern template __declspec(dllexport) const int MemVarTmpl::StaticVar<ExplicitDecl_Exported>;
|
|
|
|
template __declspec(dllexport) const int MemVarTmpl::StaticVar<ExplicitDecl_Exported>;
|
|
|
|
|
|
|
|
// Export explicit instantiation definition of a non-exported member variable
|
|
|
|
// template.
|
2018-03-17 04:36:49 +08:00
|
|
|
// MSC-DAG: @"??$StaticVar@UExplicitInst_Exported@@@MemVarTmpl@@2HB" = weak_odr dso_local dllexport constant i32 1, comdat, align 4
|
2018-02-24 03:30:48 +08:00
|
|
|
// GNU-DAG: @_ZN10MemVarTmpl9StaticVarI21ExplicitInst_ExportedEE = weak_odr dso_local dllexport constant i32 1, comdat, align 4
|
2014-05-25 18:34:16 +08:00
|
|
|
template __declspec(dllexport) const int MemVarTmpl::StaticVar<ExplicitInst_Exported>;
|
|
|
|
|
|
|
|
// Export specialization of a non-exported member variable template.
|
2018-03-17 04:36:49 +08:00
|
|
|
// MSC-DAG: @"??$StaticVar@UExplicitSpec_Def_Exported@@@MemVarTmpl@@2HB" = weak_odr dso_local dllexport constant i32 1, comdat, align 4
|
2018-02-24 03:30:48 +08:00
|
|
|
// GNU-DAG: @_ZN10MemVarTmpl9StaticVarI25ExplicitSpec_Def_ExportedEE = dso_local dllexport constant i32 1, align 4
|
2014-05-25 18:34:16 +08:00
|
|
|
template<> __declspec(dllexport) const int MemVarTmpl::StaticVar<ExplicitSpec_Def_Exported> = 1;
|