/trunk/Examples/test-suite/errors/cpp_overload_const.i
# · Swig · 13 lines · 10 code · 3 blank · 0 comment · 0 complexity · bd66c0c6f3d9bfda1d5a4ccf40bf1034 MD5 · raw file
- %module xxx
- void check(const int *v) {}
- void check(int *v) {}
- void check(int &v) {}
- void check(const int &v) {} // note: no warning as marshalled by value
- struct OverStruct {};
- void check(const OverStruct *v) {}
- void check(OverStruct *v) {}
- void check(OverStruct &v) {}
- void check(const OverStruct &v) {}