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
This commit is contained in:
parent
deca800c4d
commit
5bd41fa4bf
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
%}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue