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:
William S Fulton 2005-05-20 22:36:43 +00:00
commit 0757a8f634
2 changed files with 53 additions and 2 deletions

View file

@ -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();
}