tests to check constants don't attempt to generate setters

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7657 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2005-10-15 01:03:31 +00:00
commit 27dda1ec1f
2 changed files with 22 additions and 0 deletions

View file

@ -326,6 +326,7 @@ C_TEST_CASES += \
enums \
extern_declaration \
function_typedef \
immutable \
inctest \
lextype \
li_carrays \

View file

@ -0,0 +1,21 @@
// test to make sure setters are not generated for constants
%module immutable
%immutable;
%mutable;
%inline %{
#define ABC -11
enum count {zero, one, two};
%}
%clearimmutable;
%inline %{
#define XYZ -22
enum backwards {tre=3, duo=2, uno=1};
%}