PageRenderTime 62ms CodeModel.GetById 31ms RepoModel.GetById 1ms app.codeStats 1ms

/tags/ttn-post-libtool-1-4-3-upgrade/SWIG/Examples/test-suite/evil_diamond.i

#
Swig | 23 lines | 15 code | 8 blank | 0 comment | 0 complexity | e23f8eea9331467f8efd800b81f4dff3 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. %module evil_diamond
  2. %warnfilter(801) foo; // Ruby, wrong class name
  3. %warnfilter(801) bar; // Ruby, wrong class name
  4. %warnfilter(801) baz; // Ruby, wrong class name
  5. %warnfilter(801,802,813) spam; // Ruby, wrong class name; Ruby & Java, multiple inheritance
  6. %inline %{
  7. class foo { };
  8. class bar : public foo {
  9. };
  10. class baz : public foo {
  11. };
  12. class spam : public bar, public baz {
  13. };
  14. foo *test(foo *f) { return f; }
  15. %}