PageRenderTime 81ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
Swig | 21 lines | 12 code | 5 blank | 4 comment | 0 complexity | ac8766cbf7fb144cefe791dc7a07bfdd 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 const_const_2
  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. %}