test %csmethodmodifiers for c#
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9497 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0f23c1de45
commit
ce9db25ff0
1 changed files with 7 additions and 0 deletions
|
|
@ -1,5 +1,10 @@
|
||||||
%module smart_pointer_inherit
|
%module smart_pointer_inherit
|
||||||
|
|
||||||
|
#ifdef SWIGCSHARP
|
||||||
|
// Test that the override is removed in the smart pointer for custom method modifiers
|
||||||
|
%csmethodmodifiers hi::Derived::value3 "/*csmethodmodifiers*/ public override";
|
||||||
|
#endif
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
|
|
||||||
namespace hi
|
namespace hi
|
||||||
|
|
@ -10,6 +15,7 @@
|
||||||
virtual ~Base() { }
|
virtual ~Base() { }
|
||||||
virtual int value() = 0;
|
virtual int value() = 0;
|
||||||
virtual int value2() { return val; }
|
virtual int value2() { return val; }
|
||||||
|
virtual int value3() { return val; }
|
||||||
int valuehide() { return val; }
|
int valuehide() { return val; }
|
||||||
int val;
|
int val;
|
||||||
};
|
};
|
||||||
|
|
@ -18,6 +24,7 @@
|
||||||
{
|
{
|
||||||
Derived(int i) : Base(i) {}
|
Derived(int i) : Base(i) {}
|
||||||
virtual int value() { return val; }
|
virtual int value() { return val; }
|
||||||
|
virtual int value3() { return Base::value3(); }
|
||||||
int valuehide() { return -1; }
|
int valuehide() { return -1; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue