From 5bd41fa4bf44f4b7963746ccf9f18bf3bf1e67b8 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Fri, 23 Jul 2004 21:51:42 +0000 Subject: [PATCH] const std::string reference throws typemap test added git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6052 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Examples/test-suite/lib_std_string.i | 6 ++++++ 1 file changed, 6 insertions(+) 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; +} + %}