New warning when the smartptr feature is missing in some classes in an inheritance chain. Errors test-suite now uses Python instead of Tcl as testing language
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12395 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ef3644f052
commit
3d7799fe0d
8 changed files with 107 additions and 16 deletions
29
Examples/test-suite/errors/cpp_shared_ptr.i
Normal file
29
Examples/test-suite/errors/cpp_shared_ptr.i
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
%module cpp_shared_ptr
|
||||
|
||||
%include <boost_shared_ptr.i>
|
||||
|
||||
%shared_ptr(B);
|
||||
%shared_ptr(C);
|
||||
|
||||
%inline %{
|
||||
#include <stdio.h>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
struct A {
|
||||
virtual ~A() {}
|
||||
};
|
||||
|
||||
struct B {
|
||||
virtual ~B() {}
|
||||
};
|
||||
|
||||
struct C : B, A {
|
||||
virtual ~C() {}
|
||||
};
|
||||
|
||||
struct D : C {
|
||||
virtual ~D() {}
|
||||
};
|
||||
%}
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue