1 %module typedef_reference 2 3 %include cpointer.i 4 %pointer_functions(int, intp); 5 6 %inline %{ 7 typedef int & IntRef; somefunc(IntRef i)8 int somefunc(IntRef i) { return i; } otherfunc(int & i)9 int otherfunc(int &i) { return i; } 10 %} 11