summaryrefslogtreecommitdiff
path: root/Examples/test-suite/naturalvar.i
blob: af1362031b5d1f88ba89a26b7b11ee5b12d54c68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
%module(naturalvar) naturalvar

#ifdef __cplusplus
%include std_string.i
%inline 
{
  struct Foo
  {
  };
  

  Foo f;
  std::string s;
  struct Bar
  {
    int i;
    Foo f;
    std::string s;
  };
}
#else
%inline 
{
  typedef struct _foo
  {
  }Foo;
  

  Foo f;
  char *s;
  typedef struct _bar
  {
    int i;
    Foo f;
    char *s;
  }  Bar;
}
#endif