PageRenderTime 34ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Examples/test-suite/destructor_reprotected.i

#
Swig | 41 lines | 31 code | 10 blank | 0 comment | 0 complexity | 348584e6416fc66c7ba7dab2175ac371 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. %module destructor_reprotected
  2. %inline {
  3. struct A
  4. {
  5. A()
  6. {
  7. }
  8. virtual ~A()
  9. {
  10. }
  11. };
  12. struct B : A
  13. {
  14. protected:
  15. B()
  16. {
  17. }
  18. ~B()
  19. {
  20. }
  21. };
  22. struct C : B
  23. {
  24. C()
  25. {
  26. }
  27. ~C()
  28. {
  29. }
  30. };
  31. }