PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms 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
 1%module xxx
 2
 3void check(const int *v) {}
 4void check(int *v) {}
 5void check(int &v) {}
 6void check(const int &v) {} // note: no warning as marshalled by value
 7
 8struct OverStruct {};
 9void check(const OverStruct *v) {}
10void check(OverStruct *v) {}
11void check(OverStruct &v) {}
12void check(const OverStruct &v) {}
13