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. 10
      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
{ {
} }
void decltypeFunctionPointer() {}
void usesDecltypeFunctionPointer(funcPtr func) {}
TestString::~TestString() TestString::~TestString()
{ {
} }

10
tests/CSharp/CSharp.h

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

4
tests/Common/Common.cpp

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

2
tests/Common/Common.h

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

2
tests/NamespacesDerived/NamespacesDerived.h

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

Loading…
Cancel
Save