diff --git a/SWIG/Examples/test-suite/director_frob.i b/SWIG/Examples/test-suite/director_frob.i index d8dde7d8e..02768cf5c 100644 --- a/SWIG/Examples/test-suite/director_frob.i +++ b/SWIG/Examples/test-suite/director_frob.i @@ -38,3 +38,13 @@ { }; %} + +%rename(OpInt) operator int; + +%inline %{ + class Ops { + public: + virtual ~Ops() {} + virtual operator int() { return 0; } + }; +%}