Improve correctness of SwigDerivedClassHasMethod() tests
Tests first added in issue #1323
This commit is contained in:
parent
7eba1cfea1
commit
ea3140a981
2 changed files with 28 additions and 2 deletions
|
|
@ -48,6 +48,8 @@ public class runme
|
|||
if (myNewBar == null)
|
||||
throw new Exception("non-null pointer marshalling problem");
|
||||
myNewBar.x = 10;
|
||||
|
||||
my.testSwigDerivedClassHasMethod();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -69,6 +71,14 @@ class MyOverriddenClass : MyClass {
|
|||
throw new Exception("null not received as expected");
|
||||
return b;
|
||||
}
|
||||
|
||||
public bool nonVirtual() {
|
||||
throw new Exception("non-virtual overrides virtual method");
|
||||
}
|
||||
|
||||
public virtual bool nonOverride() {
|
||||
throw new Exception("non-override overrides virtual method");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue