Browse Source

Export or implement accessible functions in tests

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/1535/head
Dimitar Dobrev 5 years ago
parent
commit
cd7b3576db
  1. 4
      tests/CSharp/CSharp.cpp
  2. 8
      tests/CSharp/CSharp.h
  3. 4
      tests/Common/Common.cpp
  4. 2
      tests/Common/Common.h
  5. 2
      tests/NamespacesDerived/NamespacesDerived.h

4
tests/CSharp/CSharp.cpp

@ -1452,6 +1452,10 @@ TestString::TestString() : unicodeConst(L"ქართული ენა"), uni @@ -1452,6 +1452,10 @@ TestString::TestString() : unicodeConst(L"ქართული ენა"), uni
{
}
void decltypeFunctionPointer() {}
void usesDecltypeFunctionPointer(funcPtr func) {}
TestString::~TestString()
{
}

8
tests/CSharp/CSharp.h

@ -1099,7 +1099,7 @@ public: @@ -1099,7 +1099,7 @@ public:
static const void* VoidPtrArray[2];
};
static constexpr double ConstexprCreateDoubleValue(double value) {
DLL_API constexpr double ConstexprCreateDoubleValue(double value) {
return value;
}
@ -1146,10 +1146,10 @@ public: @@ -1146,10 +1146,10 @@ public:
wchar_t* unicode;
};
void decltypeFunctionPointer();
DLL_API void decltypeFunctionPointer();
using funcPtr = decltype(&decltypeFunctionPointer);
void usesDecltypeFunctionPointer(funcPtr func);
DLL_API void usesDecltypeFunctionPointer(funcPtr func);
class DLL_API PrimaryBaseWithAbstractWithDefaultArg
{
@ -1315,7 +1315,7 @@ public: @@ -1315,7 +1315,7 @@ public:
extern const ComplexArrayElement ArrayOfVariableSize[];
void useStdStringJustAsParameter(std::string s);
DLL_API void useStdStringJustAsParameter(std::string s);
typedef int (typedefedFuncPtr)(Foo* a, Bar b);
int DLL_API funcWithTypedefedFuncPtrAsParam(typedefedFuncPtr* func);

4
tests/Common/Common.cpp

@ -1284,6 +1284,10 @@ bool HasVirtualFunctionWithBoolParams::virtualFunctionWithBoolParamAndReturnsBoo @@ -1284,6 +1284,10 @@ bool HasVirtualFunctionWithBoolParams::virtualFunctionWithBoolParamAndReturnsBoo
return testBool;
}
HasProtectedCtorWithProtectedParam::HasProtectedCtorWithProtectedParam(ProtectedEnum protectedParam)
{
}
SecondaryBaseWithIgnoredVirtualMethod::SecondaryBaseWithIgnoredVirtualMethod()
{
}

2
tests/Common/Common.h

@ -1308,7 +1308,7 @@ public: @@ -1308,7 +1308,7 @@ public:
virtual bool virtualFunctionWithBoolParamAndReturnsBool(bool testBool);
};
class HasProtectedCtorWithProtectedParam
class DLL_API HasProtectedCtorWithProtectedParam
{
protected:
enum ProtectedEnum

2
tests/NamespacesDerived/NamespacesDerived.h

@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
// Test whether qualified names turn out right.
namespace OverlappingNamespace
{
class InDerivedLib
class DLL_API InDerivedLib
{
public:
InDerivedLib();

Loading…
Cancel
Save