More covariant tests and polymorphic methods tests to test C# override keyword.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7197 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7a72389977
commit
0757a8f634
2 changed files with 53 additions and 2 deletions
|
|
@ -1,8 +1,8 @@
|
|||
%module class_ignore
|
||||
|
||||
%ignore Foo;
|
||||
|
||||
%ignore *::Bar::foo;
|
||||
%ignore Far::away() const;
|
||||
|
||||
%inline %{
|
||||
class Foo {
|
||||
|
|
@ -21,11 +21,21 @@
|
|||
|
||||
virtual char *blah() { return (char *) "Bar::blah"; }
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
struct Boo {
|
||||
virtual ~Boo() {}
|
||||
virtual void away() const {}
|
||||
};
|
||||
struct Far : Boo {
|
||||
virtual void away() const {}
|
||||
};
|
||||
struct Hoo : Far {
|
||||
virtual void away() const {}
|
||||
};
|
||||
|
||||
|
||||
char *do_blah(Foo *f) {
|
||||
return f->blah();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue