diff --git a/Examples/test-suite/typemap_various.i b/Examples/test-suite/typemap_various.i index 3436bac1c..2caff97dc 100644 --- a/Examples/test-suite/typemap_various.i +++ b/Examples/test-suite/typemap_various.i @@ -61,7 +61,11 @@ void CheckRetTypemapUsed() { %inline { class FFoo { public: - char * Bar(bool b) const { return (char *)"x"; } + char * Bar(bool b) const { + char *ret = new char[2]; + strcpy(ret, b ? "1" : "0"); + return ret; + } }; }