summaryrefslogtreecommitdiff
path: root/Examples/test-suite/inherit_member.i
blob: c26da6151a0720251027ab8d11769ff6952f31ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Based on https://github.com/swig/swig/issues/339 .

%module inherit_member

%include <std_string.i>

%inline %{

struct parent_class {
  std::string pvar;
};

 struct child : public parent_class {
  std::string cvar;
};

%}