Browse Source

Added a test for protected members in secondary bases.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/484/head
Dimitar Dobrev 10 years ago
parent
commit
213f0884c9
  1. 8
      tests/CSharpTemp/CSharpTemp.Tests.cs
  2. 4
      tests/CSharpTemp/CSharpTemp.cpp
  3. 2
      tests/CSharpTemp/CSharpTemp.h

8
tests/CSharpTemp/CSharpTemp.Tests.cs

@ -8,6 +8,14 @@ using Foo = CSharpTemp.Foo; @@ -8,6 +8,14 @@ using Foo = CSharpTemp.Foo;
public class CSharpTempTests : GeneratorTestFixture
{
public class ExtendsWrapper : TestOverrideFromSecondaryBase
{
public ExtendsWrapper()
{
ProtectedFunction();
}
}
[Test]
public void TestIndexer()
{

4
tests/CSharpTemp/CSharpTemp.cpp

@ -487,6 +487,10 @@ void SecondaryBase::function() @@ -487,6 +487,10 @@ void SecondaryBase::function()
{
}
void SecondaryBase::protectedFunction()
{
}
void TestOverrideFromSecondaryBase::VirtualMember()
{
}

2
tests/CSharpTemp/CSharpTemp.h

@ -497,6 +497,8 @@ public: @@ -497,6 +497,8 @@ public:
int property();
void setProperty(int value);
void function();
protected:
void protectedFunction();
};
class DLL_API TestOverrideFromSecondaryBase : public Foo, public SecondaryBase

Loading…
Cancel
Save