PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/trunk/Examples/test-suite/errors/cpp_shared_ptr.i

#
Swig | 29 lines | 20 code | 9 blank | 0 comment | 0 complexity | 12ab364633c734437c464b4edadadcd7 MD5 | raw file
 1%module cpp_shared_ptr
 2
 3%include <boost_shared_ptr.i>
 4
 5%shared_ptr(B);
 6%shared_ptr(C);
 7
 8%inline %{
 9  #include <stdio.h>
10  #include <boost/shared_ptr.hpp>
11
12  struct A {
13    virtual ~A() {}
14  };
15
16  struct B {
17    virtual ~B() {}
18  };
19
20  struct C : B, A {
21    virtual ~C() {}
22  };
23
24  struct D : C {
25    virtual ~D() {}
26  };
27%}
28
29