diff --git a/SWIG/Examples/test-suite/features.i b/SWIG/Examples/test-suite/features.i index 578fc5fe7..3cdb39bce 100644 --- a/SWIG/Examples/test-suite/features.i +++ b/SWIG/Examples/test-suite/features.i @@ -146,9 +146,12 @@ namespace Space { // The following should apply to both Base and Derived %exception Space::Base::virtualmethod(int a) const "$action /* Space::Base::virtualmethod(int a) const */"; +%exception Space::Base::operator+=(int) "$action /* Space::Base::Base() */"; + %inline %{ namespace Space { struct Base { + int operator+=(int) { return 0; } virtual const char** virtualmethod(int a) const { return 0; } virtual ~Base() {} };