swig/Examples/test-suite/director_redefined.i
Marcelo Matus 409dff398b added a new broken director case. the fix is simple but
it will require to modify lang.cxx, so, it will
wait the next release.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5561 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-13 09:05:54 +00:00

34 lines
447 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
{
virtual int get_val(int a)
{
return 1;
}
};
}