PageRenderTime 49ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
Swig | 13 lines | 10 code | 3 blank | 0 comment | 0 complexity | bd66c0c6f3d9bfda1d5a4ccf40bf1034 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. %module xxx
  2. void check(const int *v) {}
  3. void check(int *v) {}
  4. void check(int &v) {}
  5. void check(const int &v) {} // note: no warning as marshalled by value
  6. struct OverStruct {};
  7. void check(const OverStruct *v) {}
  8. void check(OverStruct *v) {}
  9. void check(OverStruct &v) {}
  10. void check(const OverStruct &v) {}