swig/Examples/test-suite/multiple_inheritance.i
Marcelo Matus 6cb06db2e3 fix warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6686 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-07 02:52:17 +00:00

43 lines
685 B
OpenEdge ABL

/* This was broken in the perl module. See bug 962115
It tests basic multiple inheritance */
%module multiple_inheritance
#ifdef SWIGRUBY
#pragma SWIG nowarn=802; // Ruby doesn't support multiple inheritance
#endif
#ifdef SWIGJAVA
#pragma SWIG nowarn=813; // Java doesn't support multiple inheritance
#endif
#ifdef SWIGCSHARP
#pragma SWIG nowarn=833; // C# doesn't support multiple inheritance
#endif
%inline %{
class Bar {
public:
virtual ~Bar()
{
}
virtual int bar() { return 1; }
};
class Foo {
public:
virtual ~Foo()
{
}
virtual int foo() { return 2; }
};
class FooBar : public Foo, public Bar {
public:
virtual int fooBar() { return 3; }
};
%}