import source from 1.3.40
[external/swig.git] / Examples / test-suite / voidtest.i
1 %module voidtest
2
3 %inline %{
4
5 void globalfunc(void) {
6 }
7
8 class Foo {
9 public:
10    Foo(void) { }
11    void memberfunc(void) { }
12    static void staticmemberfunc(void) { }
13 };
14
15
16 void *vfunc1(void *f) { return f; }
17 void *vfunc2(Foo *f) { return f; }
18 Foo  *vfunc3(void *f) { return (Foo *) f; }
19 Foo  *vfunc4(Foo *f) { return f; }
20  
21
22 %}
23