summaryrefslogtreecommitdiff
path: root/Examples/test-suite/const_const.i
blob: 7c1c92d22ce70e9a6f569c8fbabcda109693bb4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* This interface file tests whether SWIG handles types like
   "const int *const" right.

   SWIG 1.3a5 signals a syntax error.
*/

%module const_const

%typemap(in) const int *const { $1 = NULL; }

%inline %{
void foo(const int *const i) {}
%}