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

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

%typemap(in) Rect*;

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