diff --git a/SWIG/Examples/test-suite/common.mk b/SWIG/Examples/test-suite/common.mk index bb268b124..8644308cb 100644 --- a/SWIG/Examples/test-suite/common.mk +++ b/SWIG/Examples/test-suite/common.mk @@ -132,6 +132,7 @@ CPP_TEST_CASES += \ import_nomodule \ inherit_missing \ inline_initializer \ + inherit_void_arg \ kind \ lib_carrays \ lib_cdata \ diff --git a/SWIG/Examples/test-suite/inherit_void_arg.i b/SWIG/Examples/test-suite/inherit_void_arg.i new file mode 100644 index 000000000..a92446f4b --- /dev/null +++ b/SWIG/Examples/test-suite/inherit_void_arg.i @@ -0,0 +1,16 @@ +%module inherit_void_arg + +%inline %{ + +class A { +public: + virtual void f(void) = 0; +}; + +class B : public A { +public: + void f() { } +}; + +%} +