1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
%module inherit_void_arg %inline %{ class A { public: virtual ~A() { } virtual void f(void) = 0; }; class B : public A { public: void f() { } }; %}