test %csmethodmodifiers for c#
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9497 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
956a231a7e
commit
4bdfaf039e
1 changed files with 7 additions and 0 deletions
|
|
@ -1,5 +1,10 @@
|
|||
%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 %{
|
||||
|
||||
namespace hi
|
||||
|
|
@ -10,6 +15,7 @@
|
|||
virtual ~Base() { }
|
||||
virtual int value() = 0;
|
||||
virtual int value2() { return val; }
|
||||
virtual int value3() { return val; }
|
||||
int valuehide() { return val; }
|
||||
int val;
|
||||
};
|
||||
|
|
@ -18,6 +24,7 @@
|
|||
{
|
||||
Derived(int i) : Base(i) {}
|
||||
virtual int value() { return val; }
|
||||
virtual int value3() { return Base::value3(); }
|
||||
int valuehide() { return -1; }
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue