std::string throws typemaps test added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6053 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5bd41fa4bf
commit
5e87e8f3de
1 changed files with 12 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ public class lib_std_string_runme {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String argv[])
|
public static void main(String argv[]) throws Throwable
|
||||||
{
|
{
|
||||||
// Checking expected use of %typemap(in) std::string {}
|
// Checking expected use of %typemap(in) std::string {}
|
||||||
lib_std_string.test_value("Fee");
|
lib_std_string.test_value("Fee");
|
||||||
|
|
@ -61,5 +61,16 @@ public class lib_std_string_runme {
|
||||||
|
|
||||||
lib_std_string.test_reference(stringPtr);
|
lib_std_string.test_reference(stringPtr);
|
||||||
|
|
||||||
|
// Check throw exception specification
|
||||||
|
try {
|
||||||
|
lib_std_string.test_throw();
|
||||||
|
throw new Throwable("Test 5 failed");
|
||||||
|
} catch (RuntimeException e) {
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
lib_std_string.test_const_reference_throw();
|
||||||
|
throw new Throwable("Test 6 failed");
|
||||||
|
} catch (RuntimeException e) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue