adding more tests

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6740 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-11-15 22:58:10 +00:00
commit edb5a6669f
7 changed files with 42 additions and 11 deletions

View file

@ -17,6 +17,11 @@
Foo blah() {
return Foo();
}
class Bar : protected Foo
{
};
%}
#pragma SWIG nowarn=350 // operator new
@ -26,6 +31,11 @@
protected:
void *operator new(size_t l) { return malloc(sizeof(TROOT)); }
int prot_meth()
{
return 1;
}
public:
TROOT()
{
@ -36,7 +46,7 @@
}
};
class A : public TROOT
class A : protected TROOT
{
};
@ -46,11 +56,11 @@
// This case only works in python
%inline %{
struct Bar : Foo
struct FooBar : Foo
{
};
Bar bar;
FooBar bar;
%}