aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/errors/cpp_overload_const.i
blob: 0fe8d33ec289c1685bdd4e48458aa3b12d68e2df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
%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) {}