swig/SWIG/Examples/test-suite/director_redefined.i
Marcelo Matus 826771ec31 added support for friend declarations and clean/fix the
unrollVirtualMethods for the error shown in the director_redefined.i
example.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5621 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-13 01:12:53 +00:00

34 lines
439 B
OpenEdge ABL

%module(directors="1") director_redefined
/*
This example generates two 'get_val' virtual members in the
director, and since they are equivalent, the compilation fails.
*/
%feature("director") B;
%inline
{
typedef int Int;
struct A
{
virtual ~A()
{
}
virtual int get_val(Int a)
{
return 0;
}
};
struct B : A
{
int get_val(int a)
{
return 1;
}
};
}