summaryrefslogtreecommitdiff
path: root/Examples/test-suite/typemap_delete.i
blob: fa62803cbd7acd28e8350b0d0cfdeb822ea3f1fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
%module typemap_delete

#ifdef SWIGOCAML
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
#endif

%typemap(in) Rect* (Rect temp) {
  $1 = 0;
  will_not_compile
}

%typemap(in) Rect*;

%inline %{
struct Rect
{
  int val;
  Rect(int v) : val(v) {}
};
%}