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:
William S Fulton 2006-02-03 21:59:37 +00:00
commit 55d861f15e

View file

@ -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 {
};