Skip to content

Commit cd7b357

Browse files
committed
Export or implement accessible functions in tests
Signed-off-by: Dimitar Dobrev <[email protected]>
1 parent da7dd1b commit cd7b357

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

tests/CSharp/CSharp.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,6 +1452,10 @@ TestString::TestString() : unicodeConst(L"ქართული ენა"), uni
14521452
{
14531453
}
14541454

1455+
void decltypeFunctionPointer() {}
1456+
1457+
void usesDecltypeFunctionPointer(funcPtr func) {}
1458+
14551459
TestString::~TestString()
14561460
{
14571461
}

tests/CSharp/CSharp.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@ class DLL_API StaticVariables {
10991099
static const void* VoidPtrArray[2];
11001100
};
11011101

1102-
static constexpr double ConstexprCreateDoubleValue(double value) {
1102+
DLL_API constexpr double ConstexprCreateDoubleValue(double value) {
11031103
return value;
11041104
}
11051105

@@ -1146,10 +1146,10 @@ class DLL_API TestString
11461146
wchar_t* unicode;
11471147
};
11481148

1149-
void decltypeFunctionPointer();
1149+
DLL_API void decltypeFunctionPointer();
11501150

11511151
using funcPtr = decltype(&decltypeFunctionPointer);
1152-
void usesDecltypeFunctionPointer(funcPtr func);
1152+
DLL_API void usesDecltypeFunctionPointer(funcPtr func);
11531153

11541154
class DLL_API PrimaryBaseWithAbstractWithDefaultArg
11551155
{
@@ -1315,7 +1315,7 @@ class DLL_API TestIndexedProperties
13151315

13161316
extern const ComplexArrayElement ArrayOfVariableSize[];
13171317

1318-
void useStdStringJustAsParameter(std::string s);
1318+
DLL_API void useStdStringJustAsParameter(std::string s);
13191319

13201320
typedef int (typedefedFuncPtr)(Foo* a, Bar b);
13211321
int DLL_API funcWithTypedefedFuncPtrAsParam(typedefedFuncPtr* func);
@@ -1525,4 +1525,4 @@ static constexpr const int ClassMicrosoftObjectAlignmentOffsets[]
15251525
DLL_API const char* TestCSharpString(const char* in, CS_OUT const char** out);
15261526
DLL_API const wchar_t* TestCSharpStringWide(const wchar_t* in, CS_OUT const wchar_t** out);
15271527
DLL_API const char16_t* TestCSharpString16(const char16_t* in, CS_OUT const char16_t** out);
1528-
DLL_API const char32_t* TestCSharpString32(const char32_t* in, CS_OUT const char32_t** out);
1528+
DLL_API const char32_t* TestCSharpString32(const char32_t* in, CS_OUT const char32_t** out);

tests/Common/Common.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,6 +1284,10 @@ bool HasVirtualFunctionWithBoolParams::virtualFunctionWithBoolParamAndReturnsBoo
12841284
return testBool;
12851285
}
12861286

1287+
HasProtectedCtorWithProtectedParam::HasProtectedCtorWithProtectedParam(ProtectedEnum protectedParam)
1288+
{
1289+
}
1290+
12871291
SecondaryBaseWithIgnoredVirtualMethod::SecondaryBaseWithIgnoredVirtualMethod()
12881292
{
12891293
}

tests/Common/Common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,7 @@ class DLL_API HasVirtualFunctionWithBoolParams
13081308
virtual bool virtualFunctionWithBoolParamAndReturnsBool(bool testBool);
13091309
};
13101310

1311-
class HasProtectedCtorWithProtectedParam
1311+
class DLL_API HasProtectedCtorWithProtectedParam
13121312
{
13131313
protected:
13141314
enum ProtectedEnum

tests/NamespacesDerived/NamespacesDerived.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// Test whether qualified names turn out right.
66
namespace OverlappingNamespace
77
{
8-
class InDerivedLib
8+
class DLL_API InDerivedLib
99
{
1010
public:
1111
InDerivedLib();

0 commit comments

Comments
 (0)