diff --git a/SWIG/Examples/test-suite/lib_std_string.i b/SWIG/Examples/test-suite/lib_std_string.i index 8d3bb2e71..10c652863 100644 --- a/SWIG/Examples/test-suite/lib_std_string.i +++ b/SWIG/Examples/test-suite/lib_std_string.i @@ -41,6 +41,12 @@ void test_throw() throw(std::string){ throw x; } +void test_const_reference_throw() throw(const std::string &){ + static std::string x = "x"; + + throw x; +} + %}