test to make sure that variables do not use %exception by default
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8691 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
214dfb6b8e
commit
55d861f15e
1 changed files with 21 additions and 1 deletions
|
|
@ -1,7 +1,27 @@
|
|||
// Test the allowexcept feature by making the usual $action uncompileable and ensuring the %exception is picked up
|
||||
// Test allowexcept feature
|
||||
|
||||
%module allowexcept
|
||||
|
||||
// First make sure %exception is not used by default for variable wrappers
|
||||
|
||||
%nodefaultctor;
|
||||
%nodefaultdtor;
|
||||
%exception {
|
||||
This will not compile
|
||||
}
|
||||
|
||||
%inline %{
|
||||
struct UVW {};
|
||||
UVW uvw_global_variable;
|
||||
struct Bar {
|
||||
UVW member_variable;
|
||||
static UVW static_member_variable;
|
||||
};
|
||||
%}
|
||||
|
||||
|
||||
// Now test the allowexcept feature by making the usual $action uncompileable and ensuring the %exception is picked up
|
||||
|
||||
struct XYZ {
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue