PageRenderTime 45ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1-3-15/SWIG/Examples/test-suite/const_const_2.i

#
Swig | 21 lines | 12 code | 5 blank | 4 comment | 0 complexity | 50f8b9c92dd98ccdcf147291ce90c0b8 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. /* This interface file tests whether SWIG handles doubly constant
  2. methods right. SF Bug #216057 against Swig 1.3a5, reported by
  3. Mike Romberg <romberg@users.sf.net>
  4. */
  5. %module test
  6. %inline %{
  7. class Spam {
  8. public:
  9. Spam() {}
  10. };
  11. class Eggs {
  12. public:
  13. Eggs() {}
  14. const Spam *spam(void) const { return new Spam(); }
  15. };
  16. %}